Your Digital Media Has Never Looked So Good

 
yeddish
Topic Author
Posts: 5
Joined: Wed May 06, 2015 5:45 am

Youtube API use within BrightScript

Wed May 06, 2015 5:48 am

Can someone point me in the right direction in regards to accessing Youtube videos from within a Roku app? I've been searching for the information and haven't been able to turn anything up.
Thanks.
 
sjb64
Posts: 108
Joined: Thu Apr 16, 2015 1:13 pm
Location: Memphis, TN

Re: Youtube API use within BrightScript

Wed May 06, 2015 6:45 am

If I'm not mistaken that would be a violation of YouTube terms, and so wouldn't clear the Roku channel review. I could definitely be wrong though and would welcome correction, as we could certainly find uses for this too.

Your title said API, which usually is for your own videos - if the videos are yours you have too many options to list of course, but I assume you're trying to access all YouTube videos.
FlixRaider channel
 
yeddish
Topic Author
Posts: 5
Joined: Wed May 06, 2015 5:45 am

Re: Youtube API use within BrightScript

Wed May 06, 2015 6:50 am

That's what I'm gathering now that I've changed my search terms a bit. It would be for my own videos. The reason that I would want to use Youtube would be so that Roku watches would count toward my views on Youtube, but it looks like that's not possible. The big question for me now is: Why is there a sticky urging people to move to Youtube API v3 on this board if you can't use the Youtube API from Roku?
 
sjb64
Posts: 108
Joined: Thu Apr 16, 2015 1:13 pm
Location: Memphis, TN

Re: Youtube API use within BrightScript

Wed May 06, 2015 7:55 am

You can use the API freely, using roURLTransfer, but the API doesn't play videos, it pretty much does everything but. It's possible to play a video directly off a YouTube feed (even tho not the base URL), but since you would be able to play any video at that point, I still think it a terms issue.
FlixRaider channel
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9232
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: Youtube API use within BrightScript

Wed May 06, 2015 9:52 am

It is explicitly forbidden by YouTube's TOS to play video back in any video player that is not controlled and/or approved by YouTube. Presumably this is so they can accurately track the video views, analytics, and enforce ads. That aside, even if they are your videos, you'd still be using YouTube's bandwidth to play them back without re-imbursing them. If you do a search on CDN bandwidth costs for streaming, you'll quickly see why they wouldn't be okay with that.

The relevant section from YouTube's TOS:
YouTube TOS, Section 4.C. wrote:
You agree not to access Content through any technology or means other than the video playback pages of the Service itself, the Embeddable Player, or other explicitly authorized means YouTube may designate.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
 
belltown
Posts: 1445
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: Youtube API use within BrightScript

Wed May 06, 2015 10:34 am

yeddish wrote:
The big question for me now is: Why is there a sticky urging people to move to Youtube API v3 on this board if you can't use the Youtube API from Roku?


Technically, you could use the YouTube API for purposes other than actually playing videos -- displaying a list of videos, for example, without actually playing them; or maybe even using the images returned by the API as part of a screensaver channel. Those would all be legitimate uses of the YouTube API from Roku, and would need to be updated to use the YouTube v3 API.
https://github.com/belltown/
 
yeddish
Topic Author
Posts: 5
Joined: Wed May 06, 2015 5:45 am

Re: Youtube API use within BrightScript

Thu May 07, 2015 8:11 pm

Interesting. So, it sounds like it's a big fat no for what I'm looking to do. Oh well. I went ahead and implemented what I was looking for through the videoplayer example. Quick way to kill an hour. :)

Now, on to the app to play my podcast. That should be much more challenging than the video one.

Who is online

Users browsing this forum: No registered users and 8 guests