去掉调整弹兴趣

This commit is contained in:
daihh
2022-10-31 11:07:16 +08:00
parent a9a0503a97
commit efd36fe3cd
2 changed files with 8 additions and 3 deletions

View File

@@ -42,7 +42,7 @@
<img src="@/components/VideoPlayer/images/loading.svg" alt="loading"/>
</div>
<!-- 控制栏 -->
<div class="player-controls-container" @click="videoDom.focus({preventScroll: true})">
<div v-show="!isShowLoading" class="player-controls-container" @click="videoDom.focus({preventScroll: true})">
<div v-show="isShowVolumeHint" class="player-volumeHint">
<span class="player-volumeHint-text">当前音量:{{volumePercent}}%</span>
</div>
@@ -275,6 +275,7 @@ export default {
isCursorStatic: false, // 鼠标是否长时间静止不动
isMousedownProgress: false, // 鼠标是否按下了进度条(并未松开)
isPlaying: false, // 是否正在播放
loadingError:false,//加载错误提示
isShowLoading: false, // 是否显示加载框
isShowVolumeHint: false, // 是否显示音量提示条(键盘触发)
timeoutVolumeHint: 0, // 音量提示条多久ms后隐藏
@@ -289,7 +290,9 @@ export default {
isInit:false, // 是否初始化过
};
},
created() {},
created() {
},
mounted() {
this.videoDom = this.$refs.video;
this.videoDom.focus({preventScroll: true});
@@ -337,6 +340,8 @@ export default {
}
// 根据视频的readyState判断下一帧是否已加载并控制loading的显示
this.isShowLoading = this.videoDom.readyState < 3;
//if()
//console.log(this.videoDom.readyState,'this.videoDom.readyState');
}, 1000);
// 视频dom监听器用于控制鼠标的显示
this.videoDom.addEventListener("mousemove", () => {

View File

@@ -615,7 +615,7 @@
//检查引导页
this.checkAndShowGuide();
}
this.$refs.userCollection.show();
//this.$refs.userCollection.show();
},
computed: {
...mapGetters(['userInfo','studyTaskCount']),