doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.2k stars 984 forks source link

Event.PlaybackProgressUpdated fires equal to playRate and not progressUpdateEventInterval specified in TrackPlayer.updateOptions() #2166

Closed FranzVDB closed 6 months ago

FranzVDB commented 9 months ago

Describe the Bug - IOS ONLY The event "PlaybackProgressUpdated" will fire every second when progressUpdateEventInterval = 1, but if playRate is sat to 2 it will fire every 0,5 sec instead of still going off every second as expected.

Steps To Reproduce

  1. set progressUpdateEventInterval to 1 in TrackPlayer.updateOptions
  2. Subscribe to PlaybackProgressUpdated
  3. Play track
  4. set playRate to 2
  5. watch as it fires faster than every second.

Code To Reproduce Please provide a simple code example that allows others to replicate the bug.

Replicable on Example App? yes

Environment Info: Can be replicated on both real device and simulator Only a problem on IOS.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 6 months ago

This issue was closed because it has been stalled for 7 days with no activity.