Any way to access YouTube content?

Hey,

I am looking to port my app from FireTV... is there any way to access YouTube content? Since there is no WebView, I can't figure out if it is possible, since usually the way you use YouTube/DailyMotion/Vimeo etc, is by using their embedded player, which requires an iframe, which requires a WebView. Would TVML support this somehow? Is there any work around? Seems a bit strange for a TV streaming device SDK to not have any way to use the biggest sources of content around the web?

Would really like to port my app but it relies on content from the sources I mentioned, and starting with YouTube would be ideal.

Accepted Reply

There is no support for WebViews on tvOS, and so an iframe implementation will not work. TVML does not offer this capability.

Replies

There is no support for WebViews on tvOS, and so an iframe implementation will not work. TVML does not offer this capability.

Can you please confirm that all kind of webviews are not supprted?

At

https://developer.apple.com/library/prerelease/tvos/documentation/UIKit/Reference/UIWebView_Class/index.html#//apple_ref/doc/uid/TP40006950

UIWebView looks still supported and alive: is it a documentation oversight, or there's indeed a limited way to use it?

That link only show a "enum".

UIWebView isn't supported

Problem is, people see YouTube as video hosting service when it actually is a service that gets their video and try to make money out of it. Anyhow, that's good for us TV/video services, most people that come to us these days are people which cannot broadcast on Apple TV

In the actual code above the class is "TVos Prohibited"


Mark

You may want to have a look at XCDYouTubeKit: https://github.com/0xced/XCDYouTubeKit

It isn't working on tvOS as-is, but with a couple of changes one is able to get YouTube videos playing in tvOS in an AVPlayerViewController.

You can use the following class together with the standard AVPlayer to play Youtube videos:


https://github.com/hellozimi/HCYoutubeParser

Vimeo Pro shared videos work, is there an option in youtube to also make videos available for apple tvs default video playback method?


Was anyone able to play a youtube video with the

HCYoutubeParser on the tvOS Apple TV Simulator in Xcode?


In YoutubeParaser/Classes/AppDelegate.m the important part seams to be commented out with "/*" or should it work anyway?



[self.window makeKeyAndVisible];

/*

NSDictionary *videos = [HCYoutubeParser h264videosWithYoutubeURL:[NSURL URLWithString:@"http:/

MPMoviePlayerViewController *mp = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:[videos objectForKey:@"medium"]]];

*/

I think that break the TOS from Youtube.

Since this thread is from 2015, I was curious if there is any update on this.


- Is it against the current Terms of YouTube?
- Does anyone know of apps playing YouTube videos?

> Since this thread is from 2015, I was curious if there is any update on this.


Not as far as I'm aware. This is Google playing silly political games like they did with the Windows phone, on a competing product (Chromecast). You can probably throw Apple into this mix too - Apple have been clueless regarding the Apple TV platform, and they should have persued Google to implement this even if it involves paying them (but then again, that it's taken Apple years to get Amazon Video on Apple TV is also unbelivable).

Anything changed since last year? Is there a legal way to implement youtube content in tvos app?

Anyway to implement youtube content like youtube live straming ,youtube playlists to open and play in tvos app?

Just here to check if anything has changed? Is there still no luck with a legal way to implement youtube content in tvos app?