fix 核心视频
This commit is contained in:
@@ -170,7 +170,7 @@ const createPlayer = (cameraIndexCode,videoElement) => {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log('无法恢复的错误,销毁播放器');
|
console.log('无法恢复的错误,销毁播放器');
|
||||||
// hls.destroy();
|
hls.destroy();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ let isCollect = ref(0)
|
|||||||
const onVideoCollect = () => {
|
const onVideoCollect = () => {
|
||||||
pubSub.subscribe('videoCollect', () => {
|
pubSub.subscribe('videoCollect', () => {
|
||||||
clearHlsRefs()
|
clearHlsRefs()
|
||||||
// getVideoList()
|
getVideoList()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -443,7 +443,6 @@ const handleCollect = async (id, status, index) => {
|
|||||||
console.log( videoList.value[index].isCollect);
|
console.log( videoList.value[index].isCollect);
|
||||||
if(index!=null){
|
if(index!=null){
|
||||||
videoList.value[index].isCollect = 1
|
videoList.value[index].isCollect = 1
|
||||||
this.$forceUpdate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -452,7 +451,7 @@ const handleCollect = async (id, status, index) => {
|
|||||||
}
|
}
|
||||||
if(index!=null){
|
if(index!=null){
|
||||||
videoList.value[index].isCollect = 0
|
videoList.value[index].isCollect = 0
|
||||||
this.$forceUpdate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pubSub.publish('videoCollect', id)
|
pubSub.publish('videoCollect', id)
|
||||||
|
|||||||
Reference in New Issue
Block a user