机场直播及无人机直播消息提示删除

main
zhufu 2025-11-19 10:26:21 +08:00
parent 7ee0f9d2a5
commit 277bd4b419
2 changed files with 8 additions and 8 deletions

View File

@ -107,24 +107,24 @@
const rs = JSON.parse(mes);
if (rs.method == 'live_start_push' && startTidList.includes(rs.tid)) {
if (rs.data.result == 0) {
message.success('开始直播成功');
// message.success('');
airportPlayer.src(live_info.url + liveData.value.sn + '.flv');
airportPlayer.play();
} else if (rs.data.result == 513003) {
message.success('直播已开启');
// message.success('');
airportPlayer.src(live_info.url + liveData.value.sn + '.flv');
airportPlayer.play();
} else {
message.error('开始直播失败,' + errorName(rs.data.result));
// message.error(',' + errorName(rs.data.result));
}
} else if (rs.method == 'live_stop_push' && rs.tid == stopTid) {
if (rs.data.result == 0) {
message.success('停止直播成功');
// message.success('');
if (airportPlayer) {
airportPlayer.dispose();
}
} else {
message.error('停止直播失败,' + errorName(rs.data.result));
// message.error(',' + errorName(rs.data.result));
}
}
});

View File

@ -140,21 +140,21 @@
}
if (rs.method == 'live_start_push' && startTidList.includes(rs.tid)) {
if (rs.data.result == 0) {
message.success('无人机开始直播成功');
// message.success('');
uavList.value.forEach(item => {
if(rs.tid == item.startTid){
item.isUAVLive = true
}
})
} else if (rs.data.result == 513003) {
message.success('无人机直播已开启');
// message.success('');
uavList.value.forEach(item => {
if(rs.tid == item.startTid){
item.isUAVLive = true
}
})
} else {
message.error('开始直播失败,' + errorName(rs.data.result));
// message.error('' + errorName(rs.data.result));
uavList.value.forEach(item => {
if(rs.tid == item.startTid){
item.isUAVLive = false