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: 
snair
Visitor

How to play a particular video via Roku Youtube application

Hi Guys ,
I want to launch a particular youtube video from my application.I know how to open the youtube app .But don't know how to directly launch a youtube video from my application.

My youtube app launch logic
di = CreateObject("roDeviceInfo")
ip = di.GetIPAddrs()

if ip <> invalid and ip.eth1 <> invalid then
finalUrl = "http://"+ip.eth1+":8060/launch/837"
'print "Youtube URL=" finalUrl
request = createObject("roUrlTransfer")
request.SetUrl(finalUrl)
request.PostFromString("")
end if

Thanks in advance ...
SNair.
0 Kudos
2 REPLIES 2
kevev
Visitor

Re: How to play a particular video via Roku Youtube applicat

I would also like to know how to open a specific Youtube Channel in the Youtube app from my own app.
0 Kudos
dcrandall
Visitor

Re: How to play a particular video via Roku Youtube applicat

"snair" wrote:
Hi Guys ,
I want to launch a particular youtube video from my application.I know how to open the youtube app .But don't know how to directly launch a youtube video from my application.

My youtube app launch logic
di = CreateObject("roDeviceInfo")
ip = di.GetIPAddrs()

if ip <> invalid and ip.eth1 <> invalid then
finalUrl = "http://"+ip.eth1+":8060/launch/837"
'print "Youtube URL=" finalUrl
request = createObject("roUrlTransfer")
request.SetUrl(finalUrl)
request.PostFromString("")
end if

Thanks in advance ...
SNair.


Shot-in-the-dark:

finalUrl = "http://"+ip.eth1+":8060/launch/837?contentID=<yourVideoUID>"

OR

finalUrl = "http://"+ip.eth1+":8060/launch/837?v=<yourVideoUID>"
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!