1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Refine demo H5 page

This commit is contained in:
winlin 2021-05-21 17:26:52 +08:00
parent 37c9066636
commit 9ed388523f
2 changed files with 83 additions and 84 deletions

View file

@ -64,7 +64,7 @@
</footer>
</div>
<script type="text/javascript">
$(function(){
$(function(){
var sdk = null; // Global handler to do cleanup when replaying.
var startPlay = function() {
$('#rtc_media_player').show();
@ -108,7 +108,7 @@
startPlay();
}
});
});
</script>
</body>
</html>

View file

@ -68,8 +68,7 @@
</footer>
</div>
<script type="text/javascript">
var pc = null; // Global handler to do cleanup when replaying.
$(function(){
$(function(){
var sdk = null; // Global handler to do cleanup when republishing.
var startPublish = function() {
$('#rtc_media_player').show();
@ -114,7 +113,7 @@
if (query.autostart === 'true') {
startPublish();
}
});
});
</script>
</body>
</html>