Squash: Merge #2732

pull/2751/head
winlin 3 years ago
parent 5f85d405e7
commit 440f29b758

@ -295,8 +295,9 @@
});
$("#btn_start").click(startDemo);
// Never play util windows loaded @see https://github.com/ossrs/srs/issues/2732
if (conf.autostart) {
startDemo();
window.addEventListener("load", function(){ startDemo(); });
}
});
</script>

@ -199,8 +199,9 @@
});
$("#btn_start").click(startDemo);
// Never play util windows loaded @see https://github.com/ossrs/srs/issues/2732
if (conf.autostart) {
startDemo();
window.addEventListener("load", function(){ startDemo(); });
}
});
</script>

@ -110,12 +110,12 @@ $(function(){
srs_init_rtc("#txt_url", query);
$("#btn_publish").click(startPublish);
// Never play util windows loaded @see https://github.com/ossrs/srs/issues/2732
if (query.autostart === 'true') {
startPublish();
window.addEventListener("load", function(){ startPublish(); });
}
});
</script>
</body>
</html>
</html>

Loading…
Cancel
Save