Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
balbant
Streaming Star

Need content IDs and MediaType for testing deep linking, as specified in Roku's deep linking policy.

We have developed Roku SG application and submitted the Roku application on store but the application rejected because our application does not support Deep linking. I read  https://sdkdocs.roku.com/display/sdkdoc/Deep+Linking and tried to implement deep linking -
Function Main(args as Dynamic) as Void  
       print args
       if (args.ContentId <> invalid) and (args.MediaType <> invalid)
        if (args.mediaType = "season")
            HomeScreen()
        else
            print "Unknown media type ", args.mediaType
        end if
    end if
end function


and launch by curl -d '' "http://192.168.1.114:8060/launch/dev?contentID=13234&MediaType=season" its working fine, but application not launching by browser "Development Application Installer" or direct throw remote because args return only 4 following parameters -
<Component: roAssociativeArray> =
{
instant_on_run_mode: "foreground"
lastExitOrTerminationReason: "EXIT_UNKNOWN"
source: "auto-run-dev"
splashTime: "1170"
}

Where is the ContentId and MediaType ? Please Help us and provide a better example to understand and implement easily Deep Linking.
Thankyou.
0 Kudos
3 REPLIES 3
destruk
Binge Watcher

Re: Need content IDs and MediaType for testing deep linking, as specified in Roku's deep linking policy.

Your contentID is what you use to identify the video in the app so this can be anything.
In your Main function you'll need to get that contentID accessible to your scenegraph video playback system to play the video.
0 Kudos
renojim
Community Streaming Expert

Re: Need content IDs and MediaType for testing deep linking, as specified in Roku's deep linking policy.

When you sideload the channel using the browser installer, the channel gets launched, but no arguments are passed to it (there's no place in the browser to specify any arguments). If you've got launching working using the curl command then you've got the first part of deep-linking working. Now you just have to take those arguments and go to, or start playing, the specified content.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
belltown
Roku Guru

Re: Need content IDs and MediaType for testing deep linking, as specified in Roku's deep linking policy.

You can use the Roku Deep Linking Tester to test your deep-link channel launching: https://blog.roku.com/developer/2016/12/15/new-web-tools-for-faster-development-on-roku/#2
0 Kudos