通用通道支持停止实时流

This commit is contained in:
lin
2025-08-01 15:58:30 +08:00
parent 3f6264cad9
commit c75122008c
11 changed files with 709 additions and 132 deletions

View File

@@ -30,7 +30,7 @@ import {
startCruise,
startScan,
stopCruise,
stopScan, wiper, getAllForMap
stopScan, wiper, getAllForMap, stopPlayChannel
} from '@/api/commonChannel'
const actions = {
@@ -254,6 +254,16 @@ const actions = {
})
})
},
stopPlayChannel({ commit }, channelId) {
return new Promise((resolve, reject) => {
stopPlayChannel(channelId).then(response => {
const { data } = response
resolve(data)
}).catch(error => {
reject(error)
})
})
},
getList({ commit }, param) {
return new Promise((resolve, reject) => {
getList(param).then(response => {