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