react-native-jw-media-player
react-native-jw-media-player copied to clipboard
onAudioTracks not working
"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));
})
}}