修改页面显示
parent
6fac6bfd15
commit
35ae277ca3
|
|
@ -156,7 +156,7 @@
|
|||
auto_play_success(e) {
|
||||
// 静音播放成功时,触发事件,提示用户需要修改点击修改播放状态
|
||||
if (e) {
|
||||
this.$emit('mutedAutoPlaySuccess');
|
||||
this.$emit('mutedAutoPlaySuccess', this.muted);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -169,7 +169,13 @@
|
|||
auto_play_error(e) {
|
||||
// 播放失败,并且是非静音状态,则静音播放尝试是否成功
|
||||
if (!e) {
|
||||
this.muted = true;
|
||||
console.log(this.muted);
|
||||
// 如果是静音播放了,但是还是播放失败
|
||||
if (this.muted) {
|
||||
this.$emit('mutedAutoPlayError');
|
||||
} else {
|
||||
this.muted = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view :class="theme_view + ' pr'">
|
||||
<view class="pr live-bg" @click="handle_click" @touchend="handle_touch_end" :data-ignore="false">
|
||||
<component-live-video v-if="!is_live_ended" ref="liveVideo" :propSrc="live_video_src || 'http://live-pull-all.shopxo.vip/68f764013572f9240ca7ce6c/shopxo.m3u8'" @ended="ended" @loadedmetadata="loadedmetadata" @mutedAutoPlaySuccess="muted_auto_play_success" @mutedTap="muted_tap"></component-live-video>
|
||||
<component-live-video v-if="!is_live_ended" ref="liveVideo" :propSrc="live_video_src || 'http://live-pull-all.shopxo.vip/68f764013572f9240ca7ce6c/shopxo.m3u8'" @ended="ended" @loadedmetadata="loadedmetadata" @mutedAutoPlaySuccess="muted_auto_play_success" @mutedTap="muted_tap" @mutedAutoPlayError="muted_auto_play_error"></component-live-video>
|
||||
<!-- 简化版点赞效果组件 -->
|
||||
<component-full-screen-like-effect ref="fullScreenLikeEffect" :propCustomImages="like_show_imgs"></component-full-screen-like-effect>
|
||||
</view>
|
||||
|
|
@ -23,6 +23,10 @@
|
|||
因浏览器限制静音,<text class="ml-5 cr-f live-muted-text" @tap="muted_tap">请点击打开声音</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 视频播放提示 -->
|
||||
<view v-if="!is_live_ended && is_muted_auto_play_error && !live_be_right_back_error" class="live-muted flex-row align-c jc-c pointer-events-none">
|
||||
<component-icon propName="bofang" propSize="200rpx" propColor="#fff"></component-icon>
|
||||
</view>
|
||||
<!-- 主播暂时离开的提示信息-->
|
||||
<view v-if="live_be_right_back_error" class="live-pause flex-row align-c jc-c pointer-events-none">
|
||||
<view class="flex-1 flex-col align-c jc-c">
|
||||
|
|
@ -55,12 +59,18 @@
|
|||
return {
|
||||
theme_view: app.globalData.get_theme_value_view(),
|
||||
is_muted_auto_play_success: false,
|
||||
is_muted_auto_play_error: false,
|
||||
initial_reminder: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
muted_auto_play_success() {
|
||||
this.is_muted_auto_play_success = true;
|
||||
muted_auto_play_success(is_muted) {
|
||||
if (is_muted) {
|
||||
this.is_muted_auto_play_success = true;
|
||||
}
|
||||
},
|
||||
muted_auto_play_error() {
|
||||
this.is_muted_auto_play_error = true;
|
||||
},
|
||||
// 静音提示点击
|
||||
muted_tap() {
|
||||
|
|
@ -69,6 +79,8 @@
|
|||
}
|
||||
// 关闭静音提示
|
||||
this.is_muted_auto_play_success = false;
|
||||
// 关闭播放按钮
|
||||
this.is_muted_auto_play_error = false;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue