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

Android: Audio out of sync with useProgress in react-native-track-player #2411

Open
duccyf opened this issue Nov 29, 2024 · 1 comment
Open
Labels

Comments

@duccyf
Copy link

duccyf commented Nov 29, 2024

Issue

When playing audio, the useProgress function returns a value that does not match the actual playback time. The sync time is off by a few seconds, not fixed, mainly on videos longer than 10 minutes.

Environment

  • React Native version: 0.74.3
  • react-native-track-player version: 4.1.1
  • Platform: Android (Tested on multiple Android devices)
  • Backend: ExoPlayer

Steps to Reproduce

  1. Initialize Track Player with the following code:
    await TrackPlayer.setupPlayer();
    await TrackPlayer.add({
      id: 'track1',
      url: 'path/to/audio.mp3',
      title: 'Test Audio',
      artist: 'Artist'
    });
    TrackPlayer.play();
@duccyf duccyf added the Bug label Nov 29, 2024
@lovegaoshi
Copy link
Contributor

i personally dont see this behavior, and suspect this is more related to your media. u might wanna share the media links ur using to move this forward

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

No branches or pull requests

2 participants