shaka-project / shaka-player

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

how to use in react-native #3791

Closed vaseala closed 2 years ago

vaseala commented 2 years ago

Have you read the Tutorials? Yes

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using? v3.2.0

Please ask your question How to use in react-native, have some demos?

theodab commented 2 years ago

I don't believe that anyone in the Shaka Player team has any experience with React Native.

vasanth-fl commented 2 years ago

Shaka Player uses the open web standards MediaSource Extensions and Encrypted Media Extensions, neither of which are available in React Native run-time since its not a browser environment. So, i'm pretty sure you wouldn't be able to use Shaka-player in React native.

It might be possible to write a React Native bridge for https://github.com/google/shaka-player-embedded but its currently only supported on iOS.

joeyparrish commented 2 years ago

Thanks, Vasanth. If React Native has no MediaSource Extensions, then Shaka Player is probably a poor fit for that environment. @vaseala, does that answer your question?

vaseala commented 2 years ago

@vasanth-fl @joeyparrish Thank you. I only have this idea at the moment, so I first ask about the feasibility of this matter. Thank you for your answers, Your answers are very helpful to me.