1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00
srs/trunk/3rdparty/signaling/www/demos/index.html

35 lines
1.1 KiB
HTML
Raw Normal View History

2021-05-02 13:46:41 +00:00
<html>
<head>
<title>SRS</title>
<meta charset="utf-8">
</head>
<body>
<h3><a href="https://github.com/ossrs/signaling">Signaling</a> works!</h3>
<p>
2021-05-05 05:26:25 +00:00
Run demo for <a class="srs_demo" href="one2one.html?autostart=true">WebRTC: One to One over SFU(SRS)</a><br/>
点击进入<a class="srs_demo" href="one2one.html?autostart=true">SRS一对一通话演示</a>
2021-05-02 13:46:41 +00:00
</p>
2021-05-05 05:26:25 +00:00
<p>
Run demo for <a class="srs_demo" href="room.html?autostart=true">WebRTC: Video Room over SFU(SRS)</a><br/>
点击进入<a class="srs_demo" href="room.html?autostart=true">SRS多人通话演示</a>
</p>
<script>
let roomName = Number(parseInt(new Date().getTime()*Math.random()*100)).toString(16).slice(0, 7);
2021-05-05 05:26:25 +00:00
let elems = document.getElementsByClassName('srs_demo');
for (var i = 0; i < elems.length; i++) {
let elem = elems.item(i);
2021-05-28 13:44:51 +00:00
// Use random room.
let href = elem.getAttribute('href') + '&room=' + roomName;
// For run demos on SRS http server.
if (window.location.port === '8080') {
href += '&wsp=1989';
}
elem.setAttribute('href', href);
2021-05-05 05:26:25 +00:00
}
</script>
2021-05-02 13:46:41 +00:00
</body>