[Android] audio skips back 5s on notification #181

Closed
opened 2026-04-24 23:11:33 +02:00 by adam · 6 comments
Owner

Originally created by @jt196 on GitHub (Jun 8, 2022).

Steps to reproduce

  1. Play something on Android app
  2. Receive notification

Expected behaviour

  • I'd prefer the app to pause on notification sound, then resume when the sound is finished. Currently, a one off sound is ok, but if I get a few in short period of time, the skipping back is really annoying.

Actual behaviour

  • Audio skips back ~5 seconds on receipt of a notification.

Environment data

Audiobookshelf Version:

  • Android App - most recent as of June 08 2022.

Android Issue

Android version: 12

Device model: Pixel 3

Stock or customized system: CalyxOS

Originally created by @jt196 on GitHub (Jun 8, 2022). ### Steps to reproduce 1. Play something on Android app 2. Receive notification ### Expected behaviour - I'd prefer the app to pause on notification sound, then resume when the sound is finished. Currently, a one off sound is ok, but if I get a few in short period of time, the skipping back is really annoying. ### Actual behaviour - Audio skips back ~5 seconds on receipt of a notification. ### Environment data Audiobookshelf Version: - [x] Android App - most recent as of June 08 2022. #### Android Issue Android version: 12 Device model: Pixel 3 Stock or customized system: CalyxOS
adam added the bug label 2026-04-24 23:11:33 +02:00
adam closed this issue 2026-04-24 23:11:33 +02:00
Author
Owner

@DDriggs00 commented on GitHub (Jun 16, 2022):

Perhaps the auto-rewind function could be adjusted to have a minimum time before rewinding, maybe 3 seconds?

@DDriggs00 commented on GitHub (Jun 16, 2022): Perhaps the auto-rewind function could be adjusted to have a minimum time before rewinding, maybe 3 seconds?
Author
Owner

@jt196 commented on GitHub (Jun 16, 2022):

Any control would be useful! Unless I'm missing something, the app doesn't really have settings to control local stuff. Guess that's a Vue/Android thing.

@jt196 commented on GitHub (Jun 16, 2022): Any control would be useful! Unless I'm missing something, the app doesn't really have settings to control local stuff. Guess that's a Vue/Android thing.
Author
Owner

@advplyr commented on GitHub (Jun 17, 2022):

Ah yeah I just mentioned this in #244
I was using android auto on a road trip and the auto-rewind was really irritating when also using navigation.
Adding user config to adjust this is something planned, but first we should define a good default.

@advplyr commented on GitHub (Jun 17, 2022): Ah yeah I just mentioned this in #244 I was using android auto on a road trip and the auto-rewind was really irritating when also using navigation. Adding user config to adjust this is something planned, but first we should define a good default.
Author
Owner

@jt196 commented on GitHub (Jun 17, 2022):

My figure is the least intrusive would be the best. Either pause between start and end of notification, or no pause at all, probably the former.

@jt196 commented on GitHub (Jun 17, 2022): My figure is the least intrusive would be the best. Either pause between start and end of notification, or no pause at all, probably the former.
Author
Owner

@jt196 commented on GitHub (Jul 3, 2022):

@advplyr I think this is resolved on the most recent app release, right?

@jt196 commented on GitHub (Jul 3, 2022): @advplyr I think this is resolved on the most recent app release, right?
Author
Owner

@advplyr commented on GitHub (Jul 3, 2022):

Correct this is resolved. Auto-rewind only happens now after a 10s pause and can also be disabled entirely in settings.

Here is the breakdown

    if (time < 10000) seekback = 0 // 10s or less = no seekback
    else if (time < 60000) seekback = 3000 // 10s to 1m = jump back 3s
    else if (time < 300000) seekback = 10000 // 1m to 5m = jump back 10s
    else if (time < 1800000) seekback = 20000 // 5m to 30m = jump back 20s
    else seekback = 29500 // 30m and up = jump back 30s
@advplyr commented on GitHub (Jul 3, 2022): Correct this is resolved. Auto-rewind only happens now after a 10s pause and can also be disabled entirely in settings. Here is the breakdown ```js if (time < 10000) seekback = 0 // 10s or less = no seekback else if (time < 60000) seekback = 3000 // 10s to 1m = jump back 3s else if (time < 300000) seekback = 10000 // 1m to 5m = jump back 10s else if (time < 1800000) seekback = 20000 // 5m to 30m = jump back 20s else seekback = 29500 // 30m and up = jump back 30s ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#181