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

[BUG] onAudioTracks not working #65

Open
fdobre opened this issue Jul 24, 2024 · 0 comments
Open

[BUG] onAudioTracks not working #65

fdobre opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working Groomed JWP team has reviewed the ticket and deemed it necessary

Comments

@fdobre
Copy link

fdobre commented Jul 24, 2024

Describe the bug

"@jwplayer/jwplayer-react-native": "^1.0.1",
"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]

            onAudioTracks={()=>{
              console.log('tracks ready now');
              videoPlayerRef?.current?.getAudioTracks().then((data)=>{
                console.log('===audio tracks are=== ', JSON.stringify(data, null, 2));
              })
            }}
 LOG  on audio track ready {"target": 7387}
 ERROR  [Error: There are no audio tracks]
 LOG  ===audio tracks are=== null

To Reproduce

  1. Use a video with multiple audio tracks.
  2. Add a listener as above for onAudioTracks
  3. Observe the logs

Expected behavior

  • onAudioTracks event should be fired on both Android and iOS
  • getAudioTracks should provide and list with tracks to be able to have a default audio track set according to app language chosen by the user
@fdobre fdobre added the needs-grooming Has not been reviewed by codeowners for scope/validation label Jul 24, 2024
@AmitaiB AmitaiB added bug Something isn't working and removed needs-grooming Has not been reviewed by codeowners for scope/validation labels Jul 24, 2024
@Jmilham21 Jmilham21 added the Groomed JWP team has reviewed the ticket and deemed it necessary label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Groomed JWP team has reviewed the ticket and deemed it necessary
Projects
None yet
Development

No branches or pull requests

3 participants