[1078] 支持语音对讲 中心广播模式

This commit is contained in:
lin
2025-07-28 17:50:03 +08:00
parent 4fb04776f2
commit 4c97022c78
22 changed files with 316 additions and 241 deletions

View File

@@ -23,9 +23,9 @@ import {
reset,
sendTextMessage,
setConfig, setPhoneBook, shooting,
startPlayback,
startPlayback, startTalk,
stopPlay,
stopPlayback,
stopPlayback, stopTalk,
telephoneCallback,
update,
updateChannel,
@@ -372,6 +372,26 @@ const actions = {
reject(error)
})
})
},
startTalk({ commit }, param) {
return new Promise((resolve, reject) => {
startTalk(param).then(response => {
const { data } = response
resolve(data)
}).catch(error => {
reject(error)
})
})
},
stopTalk({ commit }, param) {
return new Promise((resolve, reject) => {
stopTalk(param).then(response => {
const { data } = response
resolve(data)
}).catch(error => {
reject(error)
})
})
}
}