-
Notifications
You must be signed in to change notification settings - Fork 173
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 book starts playing when app opens #973
Comments
I'm not able to reproduce this. What version of the iOS app are you using? Is this happening every time for you? Are you leaving the app open in the background or closing it? |
app version I typically always switch apps (leaving apps in the bg)... until something doesn't seem to be working, then I'll hard-close the app and re-open it. It's happened several times in the past week, but it doesn't seem to happen all of the time... often enough to be a little annoying :) |
It’s a weird one. I get the same issue. Doesn’t really bother me but still, curious. |
I experienced this same issue. Here are some additional details in case it is helpful in recreating: I was listening to a book on my iPhone in the car via Bluetooth. The immediately-start-playing issue doesn't bother me too much (I would hate to have a fix for this prevent being able to get in and out of a car and continue listening without a bunch of button presses), but I experienced a secondary issue where the controls were not visible while the book was playing. Possibly the same as OP's "before the UI is finished loading." P.S. I meant to mention that major kudos are deserved fro the developers of this app. This is one of the best if not the best open source iOS apps I've experienced. It looks beautiful, runs smoothly, and does what it's supposed to. This is the one bug that I've found so far. |
I also have the same issue, it used to happen before but seems to got fixed. But now it's back. |
This happens whether the book is downloaded or streaming. The streaming one is way more confusing because it starts playing the audio even before the server connects. When I go to the book that's playing it shows as if it isn't playing. This is also happening on the macOS client which seems to be the iOS app running on Mac. It randomly starts playing there and I can't get the play controls to come up so I have to quit the app. I just updated the server app so I'll test it this week and report back. |
Still present on the latest server version and updated iOS app. It will even continue playing a file that isn't downloaded while the server is disconnected. |
This isn't too surprising. Presumably the app caches some duration while it's streaming. Would be interesting to know how long it will play when this happens. |
I also have the same issue with the latest version... |
In a recent play, I just left the house and left my wifi, I opened my app in the car and got about 3-5 min away when it stopped and I noticed it wasn't connected to my server. I killed the app and reconnected and it played fine. I agree that it seems that the app is automatically playing from the cache. I think I'd prefer it if it wouldn't autoplay when I open the app. |
Is anyone able to reproduce this consistently yet? I'm trying to reproduce it again but unsuccessful so far. By reproduce consistently I mean you are able to cause this to happen with a specific set of steps that you can share. I've taken a guess at what could be happening while reading through the docs but I can't be sure until I can reproduce it. https://developer.apple.com/documentation/avfaudio/avaudiosession/interruptionreason/appwassuspended |
Let me know if this issue persists in 0.9.72-beta |
I'll test it asap. I made attempts to trigger this intentionally (to try to gauge a cause/effect) for about 20 min yesterday and couldn't get it to happen. Then it happened (seemingly randomly) when I opened the app last night.... and then again just now when I opened up the app to check what version I had installed (0.9.71). I'll update again next week if I do or don't see it again (after updating). |
So this is continuing to happen to me in the latest version (0.9.72). Idk if this is related, but I also experienced my current book starting to play at 1-2 AM seemingly on it's own. This is really weird. I wonder if there's some logging that could be enabled (perhaps that I could opt-into) that could cache interactions that I could then send you (or upload here) to help triage this issue. |
If we're right that this is a caching issue, the server may not even know. Thus, logs may not be entirely useful. |
Still happened with the latest build, even with downloaded local files. |
The best way to figure this out is to find out how to reproduce it |
I experienced an extreme example of this last night where a book started playing randomly at midnight. The phone was otherwise sitting peacefully on my nightstand. When I opened the app to stop it, I was greeted with this: There was at least one, if not 2 more copies of the error message on the screen when I first opened it, and they were disappearing quickly. I didn't have my full senses about me, but I don't believe I had the option to stop the playback from within the app and had to force quit the app to get playback to stop (i.e., the playback controls were missing). Steps to repeat:
I had not touched the app since pausing. |
It also started playing at night here as well randomly. It had been a few hours since I last used it. |
I know it was mentioned that this also happens while streaming but the screenshots I've seen so far have all been downloaded. Is it possible the streaming is a slightly different situation happening that is getting conflated with this one? Because that happens often and makes it difficult to narrow down the issue. |
This book was not downloaded -- at least not manually. |
@nigiriemoji Are you able to reproduce this consistently? To where you can give me an exact set of steps to reproduce it on my end? |
I can sort of consistently reproduce it with many minutes/hours between each playback session. I just don’t know how many minutes to wait, but taking a night’s sleep usually is long enough. Just happened to me right now this morning.
|
Adding another recording of the bug. Haven’t used ABS app in several hours, feels like something to do with it being in the background for so long that it forgets its playback state? RPReplay_Final1709105143.mp4 |
I think the timing thing is important. I tried after about an hour and the app opened fine. But after 12 the bug occurred. Also, I left the app on the book screen (did not back out to the bookshelf) when I switched apps. That may or may not matter. So just pause and swipe up to switch apps, don’t press back to leave the book page. |
I tested this with a book streaming and let it play for about 10 minutes in the background with the screen off. I paused from the lock screen and just left the device for a little over 12 hours. I just unlocked the device and opened the app (that was still open in the background) and the bug did not occur. I'm still on iOS 16.x, haven't updated to 17 yet. It seems everyone here is on 17 so maybe this bug started on newer iOS versions. Is anyone still on iOS 16 that is having this issue? |
I don't have any devices on ios 16 anymore. But try pausing from within the app and then switching apps. |
Also on iOS 17 sorry. I typically pause directly within the app, though unsure what is the last screen/menu of the app that causes the bug Any logs that I could provide to you the next time I encounter this bug? |
I tested pausing within the app and left it in the bg asleep for a day. Still not able to reproduce that on iOS 16. I don't know about any logs that can provided |
this still happens to me daily... any idea when you might be able to test on iOS 17? |
I have an iPhone 10 that is only used for testing and iOS 17 isn't supported for it. I will probably get a new one since these types of things are why I opened up donations. |
This issue is still occurring for v0.9.73-beta iOS that came out in the last 48 hours. |
I had a weird situation this weekend where this bug popped up while I was in the middle of listening. I was running around, so I don't have the exact steps to reproduce, but generally I was listening, and then at some point while the audio was playing I opened the app to find that the controls had disappeared. When I clicked "stream" like I normally do when this bug pops up, the playback went back a couple minutes and started playing again with the control. Very odd. |
I continue to have this bug on a daily basis. I'm assuming it won't get resolved until the devs have time/chance to test against iOS 17. |
Yeah I still have to buy a newer iphone |
Completely understand. I just wanted to add a new data point in case it's helpful in finding the issue. I've only encountered the while-listening issue once, and I've just taken to force-closing the app when I'm done listening, so this bug doesn't really bother me. But it will be good to squash it. |
For sure, I appreciate the reports since we haven't narrowed down how exactly to reproduce this. |
Can anyone confirm if this issue still exists in v0.9.74-beta? |
I bought a new iphone that is running ios17 and I haven't come across this yet |
I haven't had it happen on the latest update, but I also have gotten into the habit of force-closing the app when I'm done. Let me see if I can get it to happen again. |
May have been inadvertently fixed by #1179? |
I'm going off a small sample size (1), but I did not get this error with the latest version after trying what had caused it before. So it's entirely possible 0.9.74 has a fix. Anyone else? |
+1 seems to be fixed after three sessions usually the bug was play book, sleep timer activates, come back to app ~1 hour later and auto play without input being the bug no longer occurs |
Awesome thanks for testing and thanks to @indiefan for tracking that one down |
I managed to get the playback error once yesterday in a whole day of listening, but far more rarely than before. Perhaps an unrelated issue, since I didn't have any unexpected resumes |
Steps to reproduce
Expected behaviour
Actual behaviour
Environment data
Audiobookshelf Version: 2.5.0
iOS Issue
iOS Version: 17.1.2
iPhone model: iPhone 12 Pro
The text was updated successfully, but these errors were encountered: