ai视频一期功能提交

This commit is contained in:
sunli_tydic
2025-12-09 10:26:02 +08:00
parent caa9b23766
commit 82dcfa6348
16 changed files with 838 additions and 155 deletions

View File

@@ -121,7 +121,7 @@
</div>
<!-- ai播放器相关 -->
<div class="player-controls-bottom-right">
<div class="player-controls-btn box-aiTranslate">
<div v-if="isAiTranslate" class="player-controls-btn box-aiTranslate">
<div v-show="isSubtitle" class="player-controls-btn cursor-pointer btn-speed">
<span>{{!currentLang ? 'AI翻译' : currentLangLabel}}</span>
<div class="speed-control">
@@ -337,13 +337,17 @@ export default {
},
// ai播放器相关
computed: {
...mapGetters(['selectableLang','currentLang'])
...mapGetters(['selectableLang','currentLang','courseInfo']),
isAiTranslate () {
return this.courseInfo?.aiSet == 1 && this.courseInfo?.aiTranslate == 1;
}
},
created() {
// ai播放器相关
this.SET_currentLang('');
},
mounted() {
console.log('---',this.isAiTranslate,this.courseInfo,'courseInfo');
this.videoDom = this.$refs.video;
this.videoDom.focus({preventScroll: true});
let speedValue=localStorage.getItem('boe_video_speed');