newchannel
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2018
01:10 PM
Deep Linking...does it replace this?
Does this
replace this
Function Main (args as Dynamic) as Void
replace this
sub Main(input as Dynamic)
http://www.victoryNOWfilmsandtv.com
6 REPLIES 6
comperc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2018
11:26 PM
Re: Deep Linking...does it replace this?
No it doesn't. Deep linking is more about the value of args
newchannel
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2018
04:56 PM
Re: Deep Linking...does it replace this?
Okay, thank you for helping.
I have this for my deep linking code. I believe it gets added to main.brs Does it matter where in the main.brs it gets placed? That has always confused me is how to know where to add things. I've been reading about deep linking and hopefully I can get it working. I'll have in the XML contentID and mediaType and only using the movie mediatype.
I have this for my deep linking code. I believe it gets added to main.brs Does it matter where in the main.brs it gets placed? That has always confused me is how to know where to add things. I've been reading about deep linking and hopefully I can get it working. I'll have in the XML contentID and mediaType and only using the movie mediatype.
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
'Print an error message. Do not fail silently
print "Unknown Media Type = ", mainArgs.mediaType
End If
End If
End Function
http://www.victoryNOWfilmsandtv.com

speechles
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2018
05:35 PM
Re: Deep Linking...does it replace this?
Else
'Print an error message. Do not fail silently
print "Unknown Media Type = ", mainArgs.mediaType
That part is wrong.
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
that is more like that you should be doing.
newchannel
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2018
08:14 AM
Re: Deep Linking...does it replace this?
"speechles" wrote:Else
'Print an error message. Do not fail silently
print "Unknown Media Type = ", mainArgs.mediaType
That part is wrong.
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
that is more like that you should be doing.
Thank you.
http://www.victoryNOWfilmsandtv.com
newchannel
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2018
07:52 PM
Re: Deep Linking...does it replace this?
Do you know if deep linking is required for a live streaming channel?
http://www.victoryNOWfilmsandtv.com
newchannel
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2018
06:00 PM
Re: Deep Linking...does it replace this?
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.
http://www.victoryNOWfilmsandtv.com