audiobookshelf-app icon indicating copy to clipboard operation
audiobookshelf-app copied to clipboard

After Pausing, Disconnecting a Bluetooth device, and Reconnecting and Listening, the App Plays Two Audio Streams

Open ShiromMakkad opened this issue 1 year ago • 6 comments

Steps to reproduce

I like to use my Airpods to listen to books. I was listening with them and I put them away, disconnecting the bluetooth. Then I went back to listen to the audiobook, so I opened my airpods and reconnected to my phone. Once I did, it played two audio streams from two different parts of the book.

Expected behaviour

It should play the audio from the place I last left off

Actual behaviour

It plays two audio streams, it literally sounds like two people are talking at once. One audio stream is from a few hours later in the book, and one is the correct one from when I left off. The bar at the bottom flickers between showing the later stream position and the actual one, but if you pause it, it goes to the later stream position and completely loses your spot in the book. It's very frustrating.

Environment data

Audiobookshelf Version:

  • [? ] Android App?
  • [ X] iOS App?

iOS Issue

iOS Version: 15

iPhone model: iPhone 13

ShiromMakkad avatar Jul 13 '22 02:07 ShiromMakkad

This is a major issue for me and I'm running into it after one day of use. I'd love to help fix this, but I don't have any Vue or Capacitor experience. I do have React, React Native, and a lot of web experience, so I think I could figure things out with a few pointers. Thanks!

ShiromMakkad avatar Jul 13 '22 02:07 ShiromMakkad

It happens when I pause and resume while connected to a bluetooth device

ShiromMakkad avatar Jul 14 '22 17:07 ShiromMakkad

I have also experienced the same issue as OP, where the same audiobook will playback from two different intervals, but that is harder to reproduce.

I am able to reliably reproduce double playback from two sources though, as follows: Reproduced with Bluetooth headphones connected and disconnected.

Open app, choose an audiobook or podcast and start listening. Pause the playback with the iOS controls (not the pause button in the app) Go to other library and choose to play something else (e.g. if an audiobook was first played, choose a podcast) Pressing play in the app will result in a single stream. Pause playback again from the iOS controls. Then press play from the iOS controls. You’ll hear two audio streams. Going back to the originally opened audiobook leaves the playback in a different place as well.

Completely closing the app (swiping it away in the app switcher) will fix the issue.

iOS 15.5 App version 0.9.55 Server version 2.1.1

jimbolimbo13 avatar Aug 01 '22 20:08 jimbolimbo13

I fixed a number of issues in playback on iOS with PR #277. When we get that merged and released, I’d be curious if you can still reproduce.

ronaldheft avatar Aug 20 '22 19:08 ronaldheft

Please follow up if this issue still persists in the latest version v0.9.57-beta

advplyr avatar Aug 28 '22 16:08 advplyr

Confident this issue has been fixed, especially after #386

ronaldheft avatar Sep 18 '22 16:09 ronaldheft