Procházet zdrojové kódy

临时变更推流字段

leo před 2 roky
rodič
revize
9b9a8f1098
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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> 元素的默认控件(例如播放按钮、进度条等)