瀏覽代碼

处理小程序没有画面显示问题

leo 1 年之前
父節點
當前提交
fcbe20bdcb
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      static/rtcEngine/WXtrialInterface.html
  2. 0 1
      static/rtcEngine/js/WXtrialInterface.js

+ 1 - 1
static/rtcEngine/WXtrialInterface.html

@@ -36,7 +36,7 @@
                     x5-video-player-fullscreen="true" x5-video-orientation="portraint" id="playerVideo"
                     class="videoRotate" :controls="false" @touchmove.prevent="(event) => {engine.touchClick(event, 2)}"
                     @touchstart.prevent="(event) => {engine.touchClick(event, 0)}"
-                    @touchend.prevent="touchendRtcMediaPlayer" v-show="isShowVideo">
+                    @touchend.prevent="touchendRtcMediaPlayer" v-show="isShowVideo" muted>
                     当前浏览器暂不支持、请使用谷歌浏览器或前往双子星客户端使用</video>
             </div>
             <!-- 底部按钮 -->

+ 0 - 1
static/rtcEngine/js/WXtrialInterface.js

@@ -243,7 +243,6 @@ const app = new Vue({
                         Toast.clear();
                         this.doConnectDirectives()
                         this.isShowVideo = true
-                        this.$refs.rtcMediaPlayer.muted = true
                         this.$refs.rtcMediaPlayer.play()
                         let ms = +new Date - this.plugFlowStartTime
                         console.timeEnd('获取推流响应消耗时间:')