Skip to content

Commit

Permalink
Fail to publish RTC automatically for HTML5
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 14, 2021
1 parent a94ef8a commit 1b5b7f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion www/demos/one2one.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion www/demos/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 1b5b7f3

Please sign in to comment.