shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.04k stars 1.33k forks source link

Android TV Support #2032

Closed liambresnahan closed 1 year ago

liambresnahan commented 5 years ago

I took a look through the roadmap and other questions but couldn't find out if Android TV as a platform has been requested before and / or is supported, could someone comment?

I'd really like to have a single player implementation over multiple platforms and Shaka looks like a good option for that if possible.

theodab commented 5 years ago

Shaka Player is based on a number of browser APIs; specifically, the MediaSource Extensions and Encrypted Media Extensions APIs. So it needs a browser environment to run. We don't currently test on Android TV, so I can't say for sure if Shaka Player will work on Android TV browsers.

We do have a related project, Shaka Player Embedded, which is for embedding into apps (that is, it does not require a browser environment). However, at the moment, Shaka Player Embedded is only for iOS; we could theoretically add Android support, yes, but at the moment we don't think it's worth the development time, since Google already has ExoPlayer.

joeyparrish commented 5 years ago

I'll ask around if anyone at the office has an Android TV we could poke at to determine its capabilities. But the main thing is that, as @theodab points out, Shaka Player runs in a browser environment. It should be possible to run Shaka Player in a browser on ATV, and it may be possible to run Shaka Player in a web app packaged as an APK, either using "Trusted Web Activities" or WebView.

For Shaka Player to call anything an "officially supported" platform, we have to have one in our lab and run tests on it nightly. These are listed in our README. But many unofficial, community-supported platforms can run Shaka Player anyway, such as XBox One, Tizen 4, etc. We are always accepting pull requests to add support for these additional platforms.

liambresnahan commented 5 years ago

thanks for the info all. This helps a lot. I had seen Shaka Player Embedded but noticed that didn't support Android TV. It seems like this might be a good platform to target as having a single player over many places would be very nice. However totally understand this needs work / prioritization

avelad commented 1 year ago

Is anyone interested in this? If not, the issue will be closed in 7 days.

github-actions[bot] commented 1 year ago

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.