Inrego / AbooIssueTracking

Issue Tracking for the Aboo app
3 stars 0 forks source link

Rewind/forward buttons reset playback to beginning of file if not currently playing #15

Open Inrego opened 3 years ago

Inrego commented 3 years ago

If using the rewind/forward buttons before starting playback, position is reset to 0.

Inrego commented 3 years ago

This is probably because in ExoPlayer, position hasn't been set to the current progress. That is only set when starting playback.

Solution could be to check if playback has been started, and if not, then just change stored progress rather than actually seeking. Another solution could be to make sure to also seek when initialising - that could maybe also reduce the delay from pressing play to playback actually starting, resulting in a better user experience. However, seeking might cause ExoPlayer to actually start playing - I'll have to check if that's the case.