Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onAudioTracks not working #360

Open
fdobre opened this issue Jul 10, 2024 · 1 comment
Open

onAudioTracks not working #360

fdobre opened this issue Jul 10, 2024 · 1 comment

Comments

@fdobre
Copy link

fdobre commented Jul 10, 2024

"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
Copy link
Author

fdobre commented Jul 10, 2024

For iOS if the current track is changed from default to another one and then come back to default then the default audio track starts working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant