Browse Source

modify bug url url.value in video.js

m7s
superxxd 2 years ago
parent
commit
7b32d1f978
  1. 6
      test/video.js

6
test/video.js

@ -19,8 +19,8 @@ function startPlay(url) {
// $('#rtc_media_player').prop('srcObject', sdk.stream); // $('#rtc_media_player').prop('srcObject', sdk.stream);
// var url = $("#txt_url").val(); // var url = $("#txt_url").val();
// // parse_webrtc(url); // // parse_webrtc(url);
sdk.play(url).then(function(session){ sdk.play(url.value).then(function(session){
// console.log("play url ",$("#txt_url").val()); console.log("play url ",url.value);
// $('#datachannel_form').show(); // $('#datachannel_form').show();
}).catch(function (reason) { }).catch(function (reason) {
sdk.close(); sdk.close();
@ -32,7 +32,7 @@ function onSelectProto(){
switch(porotocol.value){ switch(porotocol.value){
case "webrtc": case "webrtc":
url.value="webrtc://192.168.0.4:1988/live/livestream" url.value="webrtc://192.168.0.4:1988/live/livestream"
//startPlay(url); startPlay(url);
break; break;
case "mqtt": case "mqtt":
url.value="ws://192.168.0.18:8083/mqtt" url.value="ws://192.168.0.18:8083/mqtt"

Loading…
Cancel
Save