diff --git a/trunk/3rdparty/signaling/www/demos/one2one.html b/trunk/3rdparty/signaling/www/demos/one2one.html index f73aca474..13724cb09 100644 --- a/trunk/3rdparty/signaling/www/demos/one2one.html +++ b/trunk/3rdparty/signaling/www/demos/one2one.html @@ -45,14 +45,14 @@
-
+
-
+
@@ -141,6 +141,7 @@ var startPublish = function (host, room, display) { var url = 'webrtc://' + host + '/' + room + '/' + display + conf.query; $('#rtc_media_publisher').show(); + $('#publisher').show(); if (publisher) { publisher.close(); @@ -163,6 +164,7 @@ var startPlay = function (host, room, display) { var url = 'webrtc://' + host + '/' + room + '/' + display + conf.query; $('#rtc_media_player').show(); + $('#player').show(); if (player) { player.close(); @@ -184,15 +186,13 @@ }); }; - $('#rtc_media_publisher').hide(); - $('#rtc_media_player').hide(); - $("#btn_start").click(startDemo); - // Pass-by to SRS url. let conf = SrsRtcSignalingParse(window.location); $('#txt_host').val(conf.host); conf.room && $('#txt_room').val(conf.room); $('#txt_display').val(conf.display); + + $("#btn_start").click(startDemo); if (conf.autostart) { startDemo(); }