react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

onAudioTracks not working

Open fdobre opened this issue 7 months ago • 1 comments

"react-native-jw-media-player": "0.2.46",
 "react-native": "^0.72.14",

Android: All tracks show in the player menu but:

  • onAudioTracks is not firing at all

iOS: All tracks show in the player menu but:

  • onAudioTracks is fired and when getting the tracks it throws: [Error: There are no audio tracks]
  • default track is not working (no sound) while on Android it works
            onAudioTracks={()=>{
              console.log('tracks ready now');
              videoPlayerRef?.current?.getAudioTracks().then((data)=>{
                console.log(JSON.stringify(data, null, 2));
              })
            }}

fdobre avatar Jul 10 '24 11:07 fdobre