支持点击列表里的频道播放

This commit is contained in:
haiyangcui
2020-10-07 22:16:11 +02:00
parent 24b84e4b12
commit 1565d39ba7

View File

@@ -298,7 +298,7 @@ export default {
}
}
if (this.video.iptv && this.video.iptv.url) {
// 如果info里含有有url是直播源,直接播放
// 是直播源,直接播放
this.playUrl(this.video.iptv.url)
this.getIptvList()
} else {
@@ -660,10 +660,16 @@ export default {
})
},
listItemEvent (n) {
this.video.info.time = 0
this.video.info.index = n
this.right.show = false
this.right.type = ''
if (this.video.iptv) {
var channel = this.iptvList[n]
// 是直播源,直接播放
this.playUrl(channel.url)
} else {
this.video.info.time = 0
this.video.info.index = n
this.right.show = false
this.right.type = ''
}
},
historyItemEvent (e) {
this.video = {