Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
snair
Level 7

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
kevev
Level 7

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
Level 7

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