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

Fix #2732: WebRTC: Fail to publish RTC automatically for HTML5.

This commit is contained in:
winlin 2021-11-14 13:41:57 +08:00
parent be0f6197d0
commit 7771fbe858
3 changed files with 6 additions and 4 deletions

View file

@ -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>

View file

@ -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>