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