leo пре 2 година
родитељ
комит
9b9a8f1098
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      static/webRtcYJ/WXtrialInterface.html

+ 2 - 1
static/webRtcYJ/WXtrialInterface.html

@@ -1363,7 +1363,7 @@
               ip +
               ':' +
               port +
-              '/index/api/webrtc?app=live&stream=test&type=play';
+              '/index/api/webrtc?app=live&stream=h264&type=play';
             wsUrl = 'ws://' + ip + ':' + port + '/plugflow';
           }
           let token = res.data.cardToken;
@@ -1386,6 +1386,7 @@
             callback: statusCallBack, //回调函数
             successCallback, // 成功请求WEBRTC回调
           };
+          console.log(option)
           engine = new RtcEngine(option);
           let myVideo = document.getElementById('playVideo');
           // 禁用 <video> 元素的默认控件(例如播放按钮、进度条等)