mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
Fix #2732: WebRTC: Fail to publish RTC automatically for HTML5.
This commit is contained in:
parent
be0f6197d0
commit
7771fbe858
3 changed files with 6 additions and 4 deletions
|
@ -295,8 +295,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#btn_start").click(startDemo);
|
$("#btn_start").click(startDemo);
|
||||||
|
// Never play util windows loaded @see https://github.com/ossrs/srs/issues/2732
|
||||||
if (conf.autostart) {
|
if (conf.autostart) {
|
||||||
startDemo();
|
window.addEventListener("load", function(){ startDemo(); });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
3
trunk/3rdparty/signaling/www/demos/room.html
vendored
3
trunk/3rdparty/signaling/www/demos/room.html
vendored
|
@ -199,8 +199,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#btn_start").click(startDemo);
|
$("#btn_start").click(startDemo);
|
||||||
|
// Never play util windows loaded @see https://github.com/ossrs/srs/issues/2732
|
||||||
if (conf.autostart) {
|
if (conf.autostart) {
|
||||||
startDemo();
|
window.addEventListener("load", function(){ startDemo(); });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
|
@ -110,12 +110,12 @@ $(function(){
|
||||||
srs_init_rtc("#txt_url", query);
|
srs_init_rtc("#txt_url", query);
|
||||||
|
|
||||||
$("#btn_publish").click(startPublish);
|
$("#btn_publish").click(startPublish);
|
||||||
|
// Never play util windows loaded @see https://github.com/ossrs/srs/issues/2732
|
||||||
if (query.autostart === 'true') {
|
if (query.autostart === 'true') {
|
||||||
startPublish();
|
window.addEventListener("load", function(){ startPublish(); });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
Loading…
Reference in a new issue