change player url on channel change
This commit is contained in:
parent
4dbcf219cd
commit
c12e10f983
@ -375,30 +375,19 @@ export default {
|
|||||||
listDate (date) {
|
listDate (date) {
|
||||||
this.getPlaylist()
|
this.getPlaylist()
|
||||||
setTimeout(() => { scrollTo(this) }, 5000)
|
setTimeout(() => { scrollTo(this) }, 5000)
|
||||||
|
},
|
||||||
|
|
||||||
|
configID (id) {
|
||||||
|
this.setLivePlayer(id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async created () {
|
async created () {
|
||||||
|
this.setLivePlayer(this.configID)
|
||||||
this.getStatus()
|
this.getStatus()
|
||||||
|
|
||||||
this.extensions = this.configPlayout.storage.extensions.join(',')
|
this.extensions = this.configPlayout.storage.extensions.join(',')
|
||||||
|
|
||||||
await this.getPath(this.extensions, '')
|
await this.getPath(this.extensions, '')
|
||||||
|
|
||||||
this.videoOptions = {
|
|
||||||
liveui: true,
|
|
||||||
controls: true,
|
|
||||||
suppressNotSupportedError: true,
|
|
||||||
autoplay: false,
|
|
||||||
preload: 'auto',
|
|
||||||
sources: [
|
|
||||||
{
|
|
||||||
type: 'application/x-mpegURL',
|
|
||||||
src: this.configGui[this.configID].player_url
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
const timeInSec = this.$timeToSeconds(this.$dayjs().format('HH:mm:ss'))
|
const timeInSec = this.$timeToSeconds(this.$dayjs().format('HH:mm:ss'))
|
||||||
const listStartSec = this.$timeToSeconds(this.configPlayout.playlist.day_start)
|
const listStartSec = this.$timeToSeconds(this.configPlayout.playlist.day_start)
|
||||||
|
|
||||||
@ -426,6 +415,22 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
setLivePlayer (id) {
|
||||||
|
this.videoOptions = {
|
||||||
|
liveui: true,
|
||||||
|
controls: true,
|
||||||
|
suppressNotSupportedError: true,
|
||||||
|
autoplay: false,
|
||||||
|
preload: 'auto',
|
||||||
|
sources: [
|
||||||
|
{
|
||||||
|
type: 'application/x-mpegURL',
|
||||||
|
src: this.configGui[id].player_url
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
async getPath (extensions, path) {
|
async getPath (extensions, path) {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
await this.$store.dispatch('media/getTree', { extensions, path })
|
await this.$store.dispatch('media/getTree', { extensions, path })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user