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

[iOS] PlaybackProgressUpdated Event Triggers Incorrectly During Fast-Forward #2366

Open
husseinkorly opened this issue Sep 2, 2024 · 1 comment
Labels

Comments

@husseinkorly
Copy link

Platform: iOS

Issue:
On iOS, the PlaybackProgressUpdated event does not behave as expected when the user fast-forwards a track. According to the documentation, this event should be emitted every progressUpdateEventInterval seconds during playback. For example, if progressUpdateEventInterval is set to 5 seconds, the PlaybackProgressUpdated event should trigger every 5 seconds of track time while the track is playing.

Problem:
When a user fast-forwards through a track, the PlaybackProgressUpdated event is incorrectly triggered for every 5 seconds fast-forwarded, rather than maintaining the interval relative to real-time playback. This issue does not occur during regular playback but only when fast-forwarding.

Steps to Reproduce:

  • Configure progressUpdateEventInterval to 5 seconds.
  • Play a track.
  • Fast-forward the track (as demonstrated in the attached video).
  • Observe that the PlaybackProgressUpdated event triggers for every 5 seconds of the fast-forwarded track time.

Expected Behavior:
The PlaybackProgressUpdated event should only trigger every 5 seconds of real-time playback, even when the user fast-forwards through the track.

Video: : Link to video demonstrating the issue

@husseinkorly husseinkorly changed the title PlaybackProgressUpdated event getting emitted when fast-forwarding on iOS [iOS] PlaybackProgressUpdated Event Triggers Incorrectly During Fast-Forward Sep 2, 2024
@doughsay
Copy link

doughsay commented Nov 4, 2024

I think this also happens when using a playback rate other than 1. So if you have the interval set to 5 seconds, and you're playback rate set to 2, the event actually fires every 2.5 seconds instead of every 5.

Also only appears only on iOS, Android seems to respect the configured progressUpdateEventInterval in real-time, not track-time.

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