SvenTiigi / YouTubePlayerKit

A Swift Package to easily play YouTube videos 📺
https://sventiigi.github.io/YouTubePlayerKit/
MIT License
714 stars 64 forks source link

AppleTV Support #63

Closed adamnagydev closed 1 year ago

adamnagydev commented 1 year ago

Is your feature request related to a problem?

Hi!

I really like the implementation and overall the whole framework, but I'm building an AppleTV App and wish to use it there. Is there any plans to make an AppleTV supported implementation?

What solution would you like?

An AppleTV supported version of the framework.

What alternatives have you considered?

-

Any additional context?

No response

kiliankoe commented 1 year ago

I just came here looking for the same (timing, lol). It looks like this package uses a WKWebView to render the player view, but unfortunately all of WebKit isn't available on tvOS.

SvenTiigi commented 1 year ago

💯 correct @kiliankoe

@adamnagydev as the YouTube Player iFrame API is the only official way to play YouTube videos and therefore requires a WKWebView the YouTubePlayerKit sadly can not support the tvOS platform due to the lack of WebKit availability.

Related Tweet: https://twitter.com/SvenTiigi/status/1630843792390516736

kiliankoe commented 1 year ago

If it helps your usecase @adamnagydev, I just tried and it's possible to deeplink into the YouTube app on tvOS by using the youtube:// scheme, e.g. rewriting https://www.youtube.com/watch?v=LDU_Txk06tM into youtube://www.youtube.com/watch?v=LDU_Txk06tM.

SvenTiigi commented 1 year ago

Closing this issue due to inactivity. Feel free to re-open the issue at any time.

MadeiraAlexandre commented 8 months ago

@kiliankoe thank you! It helped in my use case. 🙏