Add support quickplay program
This commit is contained in:
parent
7f4462c44c
commit
ac592aa78f
|
@ -189,6 +189,8 @@ sub Main (args as dynamic) as void
|
||||||
quickplay.person(itemNode)
|
quickplay.person(itemNode)
|
||||||
else if itemType = "tvchannel"
|
else if itemType = "tvchannel"
|
||||||
quickplay.tvChannel(itemNode)
|
quickplay.tvChannel(itemNode)
|
||||||
|
else if itemType = "program"
|
||||||
|
quickplay.program(itemNode)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.global.queueManager.callFunc("playQueue")
|
m.global.queueManager.callFunc("playQueue")
|
||||||
|
|
|
@ -324,6 +324,15 @@ namespace quickplay
|
||||||
m.global.sceneManager.callFunc("pushScene", group)
|
m.global.sceneManager.callFunc("pushScene", group)
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
|
' Quick Play A Live Program
|
||||||
|
sub program(itemNode as object)
|
||||||
|
if not isValid(itemNode) or not isValid(itemNode.json) or not isValid(itemNode.json.ChannelId) then return
|
||||||
|
|
||||||
|
stopLoadingSpinner()
|
||||||
|
group = CreateVideoPlayerGroup(itemNode.json.ChannelId)
|
||||||
|
m.global.sceneManager.callFunc("pushScene", group)
|
||||||
|
end sub
|
||||||
|
|
||||||
' Quick Play A Playlist.
|
' Quick Play A Playlist.
|
||||||
' Play the first unwatched episode.
|
' Play the first unwatched episode.
|
||||||
' If none, play the whole season starting with episode 1.
|
' If none, play the whole season starting with episode 1.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user