机场直播及无人机直播消息提示删除
parent
7ee0f9d2a5
commit
277bd4b419
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue