徐景良 2026-01-06 15:45:31 +08:00
commit 0fcdb2b349
2 changed files with 21 additions and 0 deletions

View File

@ -483,6 +483,9 @@
servicesTopic(querys);
services_replyTopic();
}
setTimeout(() => {
EventBus.emit('controlToDroneLive',airPortStoreVal.getGateway);
}, 10000)
};
//
const returnVoyage = () => {

View File

@ -98,6 +98,18 @@
EventBus.on(props.chartConfig.id + 'dataupdate', (data) => {
isUAVLive.value = false;
});
EventBus.on('controlToDroneLive', (gateway) => {
uavList.value.forEach(item => {
if(item.gateWay == gateway){
item.isUAVLive = true
if(showUav.value.gateWay == gateway){
player.src(live_info.url + showUav.value.sn + '.flv');
player.play();
showUav.value.isUAVLive = true
}
}
})
})
if (!getClient() || !getClient().connected) {
createConnection();
}
@ -142,6 +154,9 @@
uavList.value.forEach(item => {
if(rs.tid == item.startTid){
item.isUAVLive = true
if(showUav.value.gateWay == item.gateWay){
showUav.value.isUAVLive = true
}
}
})
} else if (rs.data.result == 513003) {
@ -149,6 +164,9 @@
uavList.value.forEach(item => {
if(rs.tid == item.startTid){
item.isUAVLive = true
if(showUav.value.gateWay == item.gateWay){
showUav.value.isUAVLive = true
}
}
})
} else {