Sfoglia il codice sorgente

fix webrtc player assert failed because media empty

Kairlec 1 anno fa
parent
commit
afed8161b1
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      web_src/src/components/dialog/rtcPlayer.vue

+ 2 - 2
web_src/src/components/dialog/rtcPlayer.vue

@@ -41,8 +41,8 @@ export default {
                 zlmsdpUrl: url,//流地址
                 simulecast: false,
                 useCamera: false,
-                audioEnable: false,
-                videoEnable: false,
+                audioEnable: true,
+                videoEnable: true,
                 recvOnly: true,
             })
             webrtcPlayer.on(ZLMRTCClient.Events.WEBRTC_ICE_CANDIDATE_ERROR,(e)=>{// ICE 协商出错