-
Notifications
You must be signed in to change notification settings - Fork 185
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] Audiobook playback skipping parts of track #686
Comments
Switching to the PWA for the time being. Looks like the webapp is not affected by this. Issue persists after removing and reinstalling the ios app. This is happening very frequently for me so it's odd there's not more reports of this. One thing that came to mind: I am mostly listening to shorter audiobooks (~1hr) which means each chapter is pretty short. I got the feeling that the audiobookshelf ios app has problems dealing with chapter tracks that only last a few minutes. This is the track length breakdown for the book i used to replicate the issue in my first post: I found mention of a similar problem on reddit: https://www.reddit.com/r/audiobookshelf/comments/108or8y/issues_with_audiobookshelf_ios/
|
I am also having some skips and starting from the start. It gets worse if I try to use the chapter time line to get back. Android 0.9.63 beta |
I'm also seeing something similar on 2.2.20 / 0.9.64-beta (and previous iOS release). In my case, after stopping playback and restarting it some time later, it will pick up at the next chapter marker. I've observed this with two books so far, one with very long chapters and another with short ones. Anecdotally, it seems to have something to do with how I stop playback or close the app. Manually stopping seems to be safe, but restarting playback after taking out my airpods seems to trigger the chapter skip. This could just be coincidence, though. The only odd thing I notice in my logs is this:
|
Have a feeling this is the operating system doing control centre shenanigans. Example below illustrates clearly:
The reason people are experiencing 20 second jumps is because the most common cause is rewinding by 30 seconds over the track boundary. RPReplay_Final1690334337.mp4 |
I've also been seeing this, v0.9.65 of the app on iOS 16.5.1 with 2.2.23 server. I usually listen to downloaded/local books so I've only seen it happen with those. The skips vary in length, sometimes several minutes and sometimes a few seconds. Sometimes I also see the audio stop but playback appears to continue in the app (so the time advances but no sound is played). I don't think it is related to particular audio files, often if I quit/restart the app and replay the part of the file that was skipping it plays fine the second time. |
Could this be part of using buffers for local play ? Today I noticed that the app is indicating that it is using a buffer when playing from local sources. |
I do believe @KaiStarkk is on to something here
I did some testing changing the skip forward/backward timespan. This does appear to have an effect on the skips at chapter start. It looks like its kind of an upper boundary for how much of the track is randomly skipped. For example, In the settings i change forward-skip to 30 seconds. When going from chapter 1 -> 2, It will repeatedly skip up to 30 seconds into the track. When i reduce forward skip setting to just 5 seconds it will still skip a random amount of time at the start of the track, but much shorter now - not more than 5 seconds. I was able to reproduce this repeatedly. Ideally we can root cause this issue and fix it - but it the cause eludes us: A straight forward work around could be to allow forward/backward skips of just 1 second in the audiobookshelf-app settings. Hoping that would reduce skips to an unnoticable amount. |
Fix track skipping on iOS (Fixes #686)
Fixed in 0.9.69-beta |
Steps to reproduce
I have noticed this happening somewhat frequently and have now found a track to reliably replicate the issue. I think this mostly occurs around changing chapter marks but might be a more general problem. When playing the audiotrack it seemingly randomly skips several seconds.
I have attached a screencap of this issue occuring.
Expected behaviour
Actual behaviour
In this video we can see:
Note: The behavior is the same when we use chapter view instead of track view. Playback will just start 15 seconds into the chapter.
signal-2023-04-25-103241_002.mp4
Environment data
Audiobookshelf Version:
iOS App
app: 0.6.63-beta
server: v2.2.19
iOS Issue
iOS Version: 16.1.1
iPhone model: iphone 13 mini
logs
posting server logs for posterity, nothing that indicates any issues here:\
The text was updated successfully, but these errors were encountered: