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

Tools: Refine random room and display for demo

This commit is contained in:
winlin 2021-05-04 11:20:10 +08:00
parent 81a87d07f6
commit 700186b1c8
4 changed files with 6 additions and 6 deletions

View file

@ -335,7 +335,7 @@
$("#btn_publish").click(on_user_publish);
// for publish, we use randome stream name.
$("#txt_url").val($("#txt_url").val() + "." + new Date().getTime());
$("#txt_url").val($("#txt_url").val() + "." + Number(new Date().getTime() + parseInt(String(Math.random() * 10000000000))).toString(16));
// start the publisher.
srs_publisher = new SrsPublisher("local_publisher", 430, 185);