fix 核心视频

This commit is contained in:
duanliang
2025-12-11 17:25:42 +08:00
parent b56a35cad4
commit 467915db82
3 changed files with 3 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ const createPlayer = (cameraIndexCode,videoElement) => {
break;
default:
console.log('无法恢复的错误,销毁播放器');
// hls.destroy();
hls.destroy();
break;
}
}

View File

@@ -190,7 +190,7 @@ let isCollect = ref(0)
const onVideoCollect = () => {
pubSub.subscribe('videoCollect', () => {
clearHlsRefs()
// getVideoList()
getVideoList()
})
}

View File

@@ -443,7 +443,6 @@ const handleCollect = async (id, status, index) => {
console.log( videoList.value[index].isCollect);
if(index!=null){
videoList.value[index].isCollect = 1
this.$forceUpdate();
}
} else {
@@ -452,7 +451,7 @@ const handleCollect = async (id, status, index) => {
}
if(index!=null){
videoList.value[index].isCollect = 0
this.$forceUpdate();
}
}
pubSub.publish('videoCollect', id)