BookPlayer icon indicating copy to clipboard operation
BookPlayer copied to clipboard

Bug: Next item does not autoplay if screen is locked and item was imported through airdrop

Open jbcoventry opened this issue 4 years ago • 12 comments

Environment

  • OS Version: 14.7.1
  • App Version: 4.1.0

Description

While listening with the screen locked, when the item finishes playing the lock screen player disappears and the next item in the playlist does not begin playing.

This happens if the items were imported directly in to BookPlayer through airdrop and also if items were airdropped in to iOS Files and then imported in to BookPlayer using the share sheet.

Autoplay works if items were instead imported by drag dropping them in MacOS finder to iPhone -> Files -> BookPlayer. Also if the folder was zipped before airdropping in to BookPlayer.

Steps to reproduce the behavior

  1. Airdrop a folder container multiple mp3 or m4b items in to BookPlayer.
  2. Play item and lock the screen.
  3. On item end next item will not play and Lock Screen player will close.

jbcoventry avatar Sep 01 '21 06:09 jbcoventry

Hi,

I can confirm having the same bug, also the workaround provided is ok.

BatsaxIV avatar Sep 04 '21 06:09 BatsaxIV

@BatsaxIV i found that zipping the folder prior to airdropping works as well. Which I find more convenient than using the finder drag drop method.

jbcoventry avatar Sep 04 '21 22:09 jbcoventry

@jbcoventry @BatsaxIV can you test on the version that was released today (v4.1.1)? that contains a fix where folder contents are being also set with the proper file protection key to allow the app while in background and locked to access the files and continue playback

GianniCarlo avatar Sep 07 '21 15:09 GianniCarlo

@GianniCarlo Autoplay now functions properly after airdropping a folder. However BookPlayer now appears to be the only option for opening airdropped folders when it was one of several before. Even when I tried a folder only containing a few text files.

Previously it would be one of many like this. Which I still get if I airdrop a single file.

Now if I airdrop a folder I only get this.

jbcoventry avatar Sep 07 '21 23:09 jbcoventry

@jbcoventry can you try turning off and back on your phone? I've had airdrop fail to receive any files in general before, and having it cancelled (don't know why), but after rebooting, it worked fine.

For transparency sake, these are the type of files we registered that the app can accept (This can be viewed from Xcode → Target BookPlayer → Info → Document Types):

Screen Shot 2021-09-07 at 18 43 53

we are not even saying that we are a primary source that handles folders, just an alternate 🤷‍♂️

GianniCarlo avatar Sep 07 '21 23:09 GianniCarlo

@GianniCarlo Restarted iPhone and MacBook. Still persists.

jbcoventry avatar Sep 07 '21 23:09 jbcoventry

not sure then :/ that change regarding folders type was introduced in v4.0.0, and we don't have a direct way in the code to trigger/modify airdrop, we can only register to receive files

GianniCarlo avatar Sep 08 '21 00:09 GianniCarlo

can you try launching VLC, then airdropping? maybe their type of documents registration got wiped? I'm just speculating, there are no docs regarding how iOS handle these things

GianniCarlo avatar Sep 08 '21 00:09 GianniCarlo

Didn't help. Also tried reinstalling BookPlayer using the unload app feature in iPhone storage settings and still nothing.

jbcoventry avatar Sep 08 '21 00:09 jbcoventry

I have the same bug. Chapters don't progress automatically anymore.

oricoh avatar Dec 24 '21 02:12 oricoh

Any update on this issue? Its been nearly a year and no solution?

oricoh avatar Aug 21 '22 23:08 oricoh

@oricoh not yet, but anyone is welcomed to tackle this issue 👍 we can provide guidance on the codebase over on our Discord

GianniCarlo avatar Aug 22 '22 21:08 GianniCarlo