use channel id instead of engine string
This commit is contained in:
parent
e237563e74
commit
16d511f0cb
@ -451,8 +451,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async getStatus () {
|
async getStatus () {
|
||||||
const engine = this.configGui[this.configID].engine_service.split('/').slice(-1)[0].split('.')[0]
|
const channel = this.configGui[this.configID].id
|
||||||
const status = await this.$axios.post('api/player/system/', { run: 'status', engine })
|
const status = await this.$axios.post('api/player/system/', { run: 'status', channel })
|
||||||
|
|
||||||
if (status.data.data && (status.data.data === 'RUNNING' || status.data.data === 'active')) {
|
if (status.data.data && (status.data.data === 'RUNNING' || status.data.data === 'active')) {
|
||||||
this.isPlaying = 'is-playing'
|
this.isPlaying = 'is-playing'
|
||||||
@ -462,8 +462,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async playoutControl (state) {
|
async playoutControl (state) {
|
||||||
const engine = this.configGui[this.configID].engine_service.split('/').slice(-1)[0].split('.')[0]
|
const channel = this.configGui[this.configID].id
|
||||||
await this.$axios.post('api/player/system/', { run: state, engine })
|
await this.$axios.post('api/player/system/', { run: state, channel })
|
||||||
|
|
||||||
setTimeout(() => { this.getStatus() }, 1000)
|
setTimeout(() => { this.getStatus() }, 1000)
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user