-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIWebView is not available on tvOS #148
Comments
An answer to this would be really helpful. |
Currently it looks like we're going to need to wait for Google/YT to release an official mechanism for accessing the raw MP4, if they decide to do so. |
One would assume they could componentize the mechanism they built for their iOS app. |
+1 for this issue |
👍 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
As far as I figured out UIWebView is needed because it embeds a UIWebView that open the html5 player, am I wrong? Isn't there any way to expose directly the streaming file and use it via AVPlayer? |
It's against the ToS because it won't display the ads. |
It would be interesting to port the structure in swift/objc with AVPlayer for the player, UIButton for banners etc. |
I just spent 2 weeks building my app, only to find out that I can't because I can't play YouTube videos without a UIWebView. ;) Should have realized it earlier. +1 on something that will allow us to do this. |
@cdrx I believe the ad playback functionality was removed in PR #58. It never worked properly anyways. Anyone try to build WebKit for tvOS? There's a guide for iOS here if anyone wants to work off of that: |
@JALsnipe does apple allow apps with custom built WebKit ? |
No @JALsnipe that is a separate issue. You will still (occasionally) get pre-roll ads on iOS using this component. |
@cdrx Can you give me an example video id where this occurs? |
@JALsnipe example of the top of my head - no. Pre-roll ads on iOS are rare, but they do happen. They never last more than 30 seconds. |
@JALsnipe prob it would not work, some libs are not working in this first beta release of tvOS and probably will never be (as far as I figured out). |
+1 |
1 similar comment
+1 |
Pingggg |
+1 |
3 similar comments
+1 |
+1 |
+1 |
There are lot of Parsers available to fetch the video, but they are all against Youtube TOC, because it stops ad displays for User. So, only way is an update from TVos with support of Webview. |
@Keyar, I don't fully agree. There are other options. YouTube can alter their Terms of Service to allow extracting video stream by tvOS apps (not likely to happen IMHO), or (BETTER!) providing a YouTube SDK for tvOS with working YouTube player. Right now, because of their ToS and lack of SDK there is no way of playing YouTube content on tvOS. I also find it awkward that no YouTube engineer responded yet in this thread. |
+1 |
1 similar comment
+1 |
+1 |
2 similar comments
+1 |
+1 |
+2 ;) |
You should really check out XCDYouTubeKit, it works great and supports tvOS as well. |
@defagos That's not a good recommendation, as it is against YouTube's terms of service. It bypasses their player and analytics. It should not be used in any production code beyond some fun prototype. |
+∞ |
+1 |
1 similar comment
+1 |
+1 .. Please provide a solution... |
+1 I have been monitoring this for a while. Still no solutions |
+1 |
1 similar comment
+1 |
Guys your +1 comments don't help and they just annoy everyone else please stop |
I am surprised to see no response yet for a burning issue like this... |
...and you're not the only one! :)
|
I see quite a few tvos apps popping up using using youtube videos (ZeroViews - http://zeroviews.net/, Haystack TV - https://itunes.apple.com/us/app/haystack-tv-watch-world-news/id829825445?mt=8). Are these guys all using AVPlayer and streaming the file directly? |
@rox3280 yep |
+1 |
3 similar comments
+1 |
+1 |
+1 |
👍 Still nothing right..? |
still no solution? 🤔 |
Some solution for this is needed. Right now it's impossible to publish apps that use YouTube videos. Huge bummer! |
It's really disappointing that in 2022 there is no response to the tvOS issue from Youtube. |
+1 |
If I wanted to play a YouTube video on Apple's tvOS, how should I do it? UIWebView is not available.
The text was updated successfully, but these errors were encountered: