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

Track looping creates audio gap in iOS playback #91

Open
valeriiamykhalova opened this issue Oct 30, 2024 · 0 comments
Open

Track looping creates audio gap in iOS playback #91

valeriiamykhalova opened this issue Oct 30, 2024 · 0 comments

Comments

@valeriiamykhalova
Copy link

Our team is switching to react-native-track-player, which seems to be the best option for native playback, but we encountered a bug that is not fixable with JS. We would greatly appreciate any tips on whether this is a known issue and if there's a way to fix it. If it's not on the schedule, are there any suggestions on where to look to fix it ourselves?

Describe the bug
A noticeable audio gap during track looping when using RepeatMode.Track. The gap occurs when the track restarts.

To Reproduce

  1. Setup TrackPlayer with a single audio track
  2. Set RepeatMode.Track
  3. Play audio and let it loop
  4. You'll hear a gap when the loop resets

Code example in RN:

await TrackPlayer.add(track);
await TrackPlayer.setRepeatMode(RepeatMode.Track);
await TrackPlayer.play();

Expected behavior
Seamless gapless playback when the audio track loops.

Smartphone:

  • Device: iPhone 14, Simulator iPhone SE 3rd generation
  • OS: iOS 17.5, iOS 18.0
  • Version: SwiftAudioEx 1.1.0

Additional context
Using:

  • react-native-track-player: 4.1.1
  • SwiftAudioEx: 1.1.0
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