Skip to content
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

Open
simonmaddox opened this issue Sep 25, 2015 · 62 comments
Open

UIWebView is not available on tvOS #148

simonmaddox opened this issue Sep 25, 2015 · 62 comments

Comments

@simonmaddox
Copy link

If I wanted to play a YouTube video on Apple's tvOS, how should I do it? UIWebView is not available.

@williamsjj
Copy link

An answer to this would be really helpful.

@johndavi
Copy link

johndavi commented Oct 7, 2015

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.

@williamsjj
Copy link

One would assume they could componentize the mechanism they built for their iOS app.

@matteocrippa
Copy link

+1 for this issue

@mkral
Copy link

mkral commented Oct 13, 2015

👍

4 similar comments
@r3econ
Copy link

r3econ commented Oct 14, 2015

+1

@yayoc
Copy link

yayoc commented Oct 15, 2015

+1

@spnkr
Copy link

spnkr commented Oct 16, 2015

+1

@blob42
Copy link

blob42 commented Oct 16, 2015

+1

@matteocrippa
Copy link

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?
But prob is pretty against your TOS...

@cdrx
Copy link

cdrx commented Oct 17, 2015

It's against the ToS because it won't display the ads.

@matteocrippa
Copy link

It would be interesting to port the structure in swift/objc with AVPlayer for the player, UIButton for banners etc.

@bytor99999
Copy link

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.

@JALsnipe
Copy link
Contributor

@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:
https://www.webkit.org/blog/3457/building-webkit-for-ios-simulator/

@blob42
Copy link

blob42 commented Oct 20, 2015

@JALsnipe does apple allow apps with custom built WebKit ?

@cdrx
Copy link

cdrx commented Oct 20, 2015

No

@JALsnipe that is a separate issue. You will still (occasionally) get pre-roll ads on iOS using this component.

@JALsnipe
Copy link
Contributor

@cdrx Can you give me an example video id where this occurs?

@cdrx
Copy link

cdrx commented Oct 20, 2015

@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.

@matteocrippa
Copy link

@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).

@WingedToaster
Copy link

+1

1 similar comment
@mikerz
Copy link

mikerz commented Oct 30, 2015

+1

@perezpaya
Copy link

Pingggg

@helmut-hoffer-von-ankershoffen

+1

3 similar comments
@kentoh
Copy link

kentoh commented Nov 5, 2015

+1

@cm-hugog
Copy link

+1

@combi83
Copy link

combi83 commented Nov 12, 2015

+1

@Keyar
Copy link

Keyar commented Nov 17, 2015

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.

@r3econ
Copy link

r3econ commented Nov 17, 2015

@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.

@sgenoud
Copy link

sgenoud commented Dec 7, 2015

+1

1 similar comment
@sndrox
Copy link

sndrox commented Dec 20, 2015

+1

@ekyawthan
Copy link

+1

2 similar comments
@baottran
Copy link

+1

@chrisbarry
Copy link

+1

@nilshott
Copy link

+2 ;)

@defagos
Copy link

defagos commented Jan 22, 2016

You should really check out XCDYouTubeKit, it works great and supports tvOS as well.

@mikerz
Copy link

mikerz commented Jan 22, 2016

@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.

@jamesdlow
Copy link

+∞

@dchirita
Copy link

dchirita commented Mar 9, 2016

+1

1 similar comment
@r3econ
Copy link

r3econ commented Mar 10, 2016

+1

@avi22228
Copy link

+1 .. Please provide a solution...

@bfaru
Copy link

bfaru commented Mar 19, 2016

+1 I have been monitoring this for a while. Still no solutions

@DanielHabib
Copy link

+1

1 similar comment
@lukecharman
Copy link

+1

@MobileMon
Copy link

Guys your +1 comments don't help and they just annoy everyone else please stop

@avi22228
Copy link

avi22228 commented Jun 9, 2016

I am surprised to see no response yet for a burning issue like this...

@sndrox
Copy link

sndrox commented Jun 9, 2016

...and you're not the only one! :)

Il giorno 09 Jun 2016, alle ore 19:20, Avinash Gadiraju notifications@github.com ha scritto:

I am surprised to see no response yet for a burning issue like this...


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@rox3280
Copy link

rox3280 commented Jun 13, 2016

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?

@matteocrippa
Copy link

@rox3280 yep

@spochart
Copy link

+1

3 similar comments
@ghost
Copy link

ghost commented Dec 13, 2016

+1

@yoninazarathy
Copy link

+1

@zboralski
Copy link

+1

@Gertjancom
Copy link

👍 Still nothing right..?

@wzqcongcong
Copy link

still no solution? 🤔

@mozltovcoktail
Copy link

Some solution for this is needed. Right now it's impossible to publish apps that use YouTube videos. Huge bummer!

@Develgo
Copy link

Develgo commented Jan 21, 2022

It's really disappointing that in 2022 there is no response to the tvOS issue from Youtube.
It's perhaps time for Apple to enter the user generated video content arena.

@tnmendes
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests