razorRun / react-native-vlc-media-player

React native media player for video streaming and playing. Supports RTSP, RTMP and other protocols supported by VLC player
https://roshan.digital/
MIT License
353 stars 183 forks source link

How can I select the audio tracks and subtitles? #137

Closed Arekjaar4 closed 1 year ago

Arekjaar4 commented 1 year ago

How can I select the audio tracks and subtitles? The documentation indicates that it is supported but does not indicate how to obtain or select them

Supported formats Support for network streams, RTSP, RTP, RTMP, HLS, MMS. Play all files, in all formats, including exotic ones, like the classic VLC media player. Play MKV, multiple audio tracks (including 5.1), and subtitles tracks (including SSA!)

Arnoldnuo commented 1 year ago

You can use my pr to support subtitles: https://github.com/razorRun/react-native-vlc-media-player/pull/143

razorRun commented 1 year ago

This PR Is merged now. Please test and let us know

Cheers

On Sat, 4 Mar 2023 at 5:45 AM, Nuo Li @.***> wrote:

You can use my pr to support subtitles: #143 https://github.com/razorRun/react-native-vlc-media-player/pull/143

— Reply to this email directly, view it on GitHub https://github.com/razorRun/react-native-vlc-media-player/issues/137#issuecomment-1453805864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EERC4WP4TYPYQQQX2TW2INZLANCNFSM6AAAAAAUN2OODU . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

Arekjaar4 commented 1 year ago

Are you referring to the "subtitleUri" property? I do not need this. What I need is to be able to select the audio, video and subtitle tracks just like the react-native-video library does with the properties, selectedAudioTrack, selectedTextTrack and selectedVideoTrack https://github.com/react-native-video/react-native-video/blob/master/API.md#selectedaudiotrack

GZLiew commented 1 year ago

@Arnoldnuo https://github.com/razorRun/react-native-vlc-media-player/pull/143 crashed my app what changed?