TheWidlarzGroup / react-native-video

A <Video /> component for react-native
https://docs.thewidlarzgroup.com/react-native-video/
MIT License
7.2k stars 2.9k forks source link

Add VLC player backend #3111

Open BlakeB415 opened 1 year ago

BlakeB415 commented 1 year ago

Feature Request

Add VLC/VLCKit as an optional backend for playback.

Why it is needed

Some codecs and protocols are not supported on the native players. This includes AV1 and Opus (primarily on iOS).

fredrikburmester commented 4 weeks ago

I'd also love to see this.

Lakston commented 2 weeks ago

Same, especially since there is no documentation on what codecs are supported, I just tried av1 (webm), av1 (mp4) and h265 (mp4) and none of those worked.

fredrikburmester commented 2 weeks ago

I have a (kinda) working example for iOS in my repo of VLC integration with an expo native module. It's no where near the level of react-native-video but it could act as a starting point..

freeboub commented 2 weeks ago

If you want to develop VLC integration, I can provide you some support. on android The code base is nearly OK to start integration of a new player. we have some common feature folder (all the react binding and common stuff) they shall be unchanged and an exoplayer folder which can be removed (or duplicated for vlc).

There are still few code organisation changes to do and in small interface to define, but it is really close to be OK. iOS is a bit harder.

Okelm commented 2 weeks ago

The dream dev experience API: react-native-video automatically pick the player depending on the codec and there's no difference functionality-wise