ai视频一期功能提交

This commit is contained in:
sunli_tydic
2025-12-09 15:36:41 +08:00
parent 9379aad28f
commit 311ec096eb
5 changed files with 31 additions and 3 deletions

View File

@@ -358,7 +358,8 @@ export default {
}
setInterval(() => {
console.log('当前状态:',this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.duration)
this.SET_duration(this.videoDom.duration);
console.log('当前状态:',localStorage.getItem('videoProgressData'),this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.duration)
// 视频播放时本地记录视频实时播放时长,视频设置了禁止拖动时执行
if(!this.isDrag){
var time = localStorage.getItem('videoProgressData')
@@ -413,6 +414,7 @@ export default {
//if()
//console.log(this.videoDom.readyState,'this.videoDom.readyState');
}, 1000);
// 视频dom监听器用于控制鼠标的显示
this.videoDom.addEventListener("mousemove", () => {
this.isCursorStatic = false;
@@ -457,6 +459,7 @@ export default {
SET_currentLang: 'video/SET_currentLang',
SET_currentTime: 'video/SET_currentTime',
SET_selectableLang: 'video/SET_selectableLang',
SET_duration: 'video/SET_duration',
}),
//当视频由于需要缓冲下一帧而停止,解决一直计时的问题
onWaiting(){