fix 核心视频
This commit is contained in:
@@ -170,7 +170,7 @@ const createPlayer = (cameraIndexCode,videoElement) => {
|
||||
break;
|
||||
default:
|
||||
console.log('无法恢复的错误,销毁播放器');
|
||||
// hls.destroy();
|
||||
hls.destroy();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ let isCollect = ref(0)
|
||||
const onVideoCollect = () => {
|
||||
pubSub.subscribe('videoCollect', () => {
|
||||
clearHlsRefs()
|
||||
// getVideoList()
|
||||
getVideoList()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user