Explorar el Código

处理推流显示错误图标问题

leo hace 9 meses
padre
commit
1edc1a9e08

+ 1 - 1
static/rtcEngine/WXtrialInterface.html

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

+ 3 - 2
static/rtcEngine/js/WXtrialInterface.js

@@ -100,8 +100,8 @@ const app = new Vue({
         recommendList: [],
         layoutViewWidth: null,
         layoutViewHeight: null,
-        // 是否静音播放
-        muted: false
+        // 是否显示video
+        isShowVideo: false
 
     },
     created() {
@@ -749,6 +749,7 @@ function playOnBtn() {
         confirmButtonColor: '#3cc51f',
         beforeClose: (action, done) => {
             if (action === 'confirm') {
+                this.isShowVideo = true
                 this.$refs.rtcMediaPlayer.play()
                 setTimeout(() => {
                     this.definitionFun(this.definitionValue)