TheWidlarzGroup / react-native-video

A <Video /> component for react-native
MIT License
7.03k stars 2.84k forks source link

[BUG]: Problem with audioTracks & textTracks #3765

Closed Meet-Kapadiya closed 2 weeks ago

Meet-Kapadiya commented 2 weeks ago

Version

6.0.0-rc.0

What platforms are you having the problem on?

No response

Architecture

Old architecture

What happened?

1.I have one video with multiple audio & one subtitle.

2.Unable to change audio & subtitle

const [audio, setAudio] = useState<string>('0');
const [subtitle, setSubtitle] = useState<string>('');

selectedTextTrack={{
    type: subtitle
      ? SelectedTrackType.INDEX
      : SelectedTrackType.DISABLED,
    value: subtitle,
}}
selectedAudioTrack={{
    type: audio ? SelectedTrackType.INDEX : SelectedTrackType.DISABLED,
    value: audio,
}}
freeboub commented 2 weeks ago

please share a sample video ! Or please try to reproduce on the sample app

Meet-Kapadiya commented 2 weeks ago

https://github.com/TheWidlarzGroup/react-native-video/assets/83551362/60d045a2-9cbf-44b1-a2e0-1ab702979642

https://github.com/TheWidlarzGroup/react-native-video/assets/83551362/e9ab6aee-96bf-412c-8fac-4803b6372678

  1. In android audio track change successfully, Track1 & Disable Track, But not in IOS
  2. In android i got no subtitle, But in IOS there is one (Audio - Listing Of audioTracks received onLoad, Subtitle - Listing Of textTracks received onLoad)
  3. Original video has multiple Audio & Subtitle
  1. Pick video with multiple Audio & Subtitle
  2. Check onLoad data (Here i list it)
  3. Try to change Audio & Subtitle with selectedTextTrack & selectedAudioTrack (With State or Set Static)
freeboub commented 2 weeks ago

@Meet-Kapadiya I need video sample to reproduce the issue, not video of the issue ...

Meet-Kapadiya commented 2 weeks ago

https://vz-edeac798-1cc.b-cdn.net/7c667fc8-4266-4ad6-9e3d-afc561df4972/playlist.m3u8

Meet-Kapadiya commented 2 weeks ago

Also title & language received as empty or null

freeboub commented 2 weeks ago

I reproduce the issue with vlc. The video doesn't embed these informations. you can compare the playlist information with this url to debug server side: https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8