update code

prv
haha 2024-03-23 22:50:36 +08:00
parent 61c3dda21e
commit ff286361ce
1 changed files with 13 additions and 10 deletions

View File

@ -307,6 +307,7 @@ export default {
};
},
mounted() {
window.xapp=this;
this.$bus.$on(
"projectChange",
debounce((res) => {
@ -1542,20 +1543,21 @@ export default {
//
initVideo(videoDvrNumber, url) {
let that = this;
that.players = [];
let parentVM = {
vd01Flag: false,
vd02Flag: false,
vd03Flag: false,
vd04Flag: false,
};
that.parentVM = parentVM;
that.players = [];
that.parentVM.vd01Flag=false;
that.parentVM.vd02Flag=false;
that.parentVM.vd03Flag=false;
that.parentVM.vd04Flag=false;
this.$api.video.getVideoPassage(videoDvrNumber).then((response) => {
let data = response.data;
this.videoPassageList = data;
that.showVideo = true;
let parentVM = { vd01Flag: true, vd02Flag: true, vd03Flag: true, vd04Flag: true };
that.parentVM = parentVM;
that.parentVM.vd01Flag=true;
that.parentVM.vd02Flag=true;
that.parentVM.vd03Flag=true;
that.parentVM.vd04Flag=true;
setTimeout(()=>{
data.forEach((it, idx) => {
let player = new WasmPlayer(null, "vd0" + (idx+1), null, {
Height: true,
@ -1602,6 +1604,7 @@ export default {
that.players[3].play(that.url3, 1);
}
});
},400);
});
},
handleOnError0(error) {