Forum Discussion
newchannel
7 years agoRoku Guru
Using the video-player-channel-master on the following page
https://github.com/rokudev/videoplayer-channel
Where in the code do I add:
Thanks for any and all advice.
https://github.com/rokudev/videoplayer-channel
Where in the code do I add:
Function Main (mainArgs as Dynamic) as Void
If (mainArgs.ContentId <> invalid) and (mainArgs.MediaType <> invalid)
If (mainArgs.mediaType = “movie” )
print "Play Movie ", mainArgs.ContentId
Else If (mainArgs.mediaType = “live” )
print "Play Live ", mainArgs.ContentId
Else If (mainArgs.mediaType = “episode” )
print "Play Episode ", mainArgs.ContentId
Else If (mainArgs.mediaType = "short-form" or mainArgs.mediaType = "special" or mainArgs.mediaType = "season" )
print "Play ",mainArgs.mediaType, " ", mainArgs.ContentId
Else
'do nothing if the user just starts the app with no args (or unknown args)
'hit the homescreen, a splash screen with a wait timer for input..
GoToHomescreen()
end if
End If
End Function
Thanks for any and all advice.