[Bug]: iOS PWA appears to play but no audio #2866

Closed
opened 2026-04-25 00:11:22 +02:00 by adam · 2 comments
Owner

Originally created by @jpw4dev on GitHub (Jul 3, 2025).

What happened?

Using the iOS PWA on iOS 18 there is no audio output while the audio book appears to play (the progress bar moves, time elapsed continues, play button becomes pause button, etc...)

What did you expect to happen?

The audio book playback to start, including the actual audio output

Steps to reproduce the issue

  1. Connect to Audiobookshelf using iOS 18 PWA
  2. Play an m4b audiobook (in my case the files are all mp3)

Audiobookshelf version

v2.25.1

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Safari on iOS

Logs

[2025-07-03 13:29:05.046] DEBUG: [ApiCacheManager] count: 0 size: 0
[2025-07-03 13:29:05.053] DEBUG: [ApiCacheManager] Cache miss: {"user":"diego","url":"/libraries/3822403e-8dae-45c5-b777-7b984732330c?include=filterdata"}
[2025-07-03 13:29:05.126] DEBUG: [ApiCacheManager] count: 1 size: 9675
[2025-07-03 13:29:05.135] INFO: [SocketAuthority] Socket Connected to /audiobookshelf/socket.io PxHdgZfVT3ZW-WtrAAAJ
[2025-07-03 13:29:05.138] DEBUG: [ApiCacheManager] count: 1 size: 9675
[2025-07-03 13:29:05.150] DEBUG: [SocketAuthority] User Online diego
[2025-07-03 13:29:05.216] DEBUG: [ApiCacheManager] Cache miss: {"user":"diego","url":"/libraries"}
[2025-07-03 13:29:05.237] DEBUG: Loaded 8 of 8 items for "Continue Listening/Reading" in 0.04s
[2025-07-03 13:29:05.243] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.01s
[2025-07-03 13:29:05.249] DEBUG: Loaded 0 of 0 items for "Recently Added" in 0.01s
[2025-07-03 13:29:05.253] DEBUG: Loaded 0 of 0 series for "Recent Series" in 0.00s
[2025-07-03 13:29:05.293] DEBUG: Loaded 10 of 33 items for "Discover" in 0.04s
[2025-07-03 13:29:05.302] DEBUG: Loaded 2 of 2 items for "Listen/Read Again" in 0.01s
[2025-07-03 13:29:05.306] DEBUG: Loaded 0 of 0 authors for "Newest Authors" in 0.00s
[2025-07-03 13:29:05.306] DEBUG: Loaded 3 personalized shelves in 0.10s
[2025-07-03 13:29:05.306] DEBUG: [ApiCacheManager] Cache miss: {"user":"diego","url":"/libraries/3822403e-8dae-45c5-b777-7b984732330c/personalized?include=rssfeed,numEpisodesIncomplete,share"}
[2025-07-03 13:29:05.307] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL
[2025-07-03 13:29:11.688] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-03 13:29:11.689] DEBUG: [PlaybackSessionManager] startSessionRequest for device iOS 18.5 / Mobile Safari
[2025-07-03 13:29:11.690] DEBUG: [PlaybackSessionManager] "diego" starting direct play session for item "53815af7-3b2c-4dd7-887e-8da3b89be664" with id acbe87f4-8edb-4801-a377-08f620944fef (Device: iOS 18.5 / Mobile Safari)
[2025-07-03 13:29:11.725] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:11.734] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:11.750] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:11.905] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:12.027] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:13.125] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:13.182] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego"
[2025-07-03 13:29:33.242] DEBUG: [PlaybackSessionManager] syncSession "acbe87f4-8edb-4801-a377-08f620944fef" (Device: iOS 18.5 / Mobile Safari) | Total Time Listened: 20
[2025-07-03 13:29:33.252] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache
[2025-07-03 13:29:33.263] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache

Additional Notes

Tried the following:

  1. Playback is successful on a Windows PC using Firefox browser
  2. Closed and reopened the app
  3. Logged out of and back into the app
  4. Restarted the iOS device
  5. Restarted Audiobookshelf container
Originally created by @jpw4dev on GitHub (Jul 3, 2025). ### What happened? Using the iOS PWA on iOS 18 there is no audio output while the audio book appears to play (the progress bar moves, time elapsed continues, play button becomes pause button, etc...) ### What did you expect to happen? The audio book playback to start, including the actual audio output ### Steps to reproduce the issue 1. Connect to Audiobookshelf using iOS 18 PWA 2. Play an m4b audiobook (in my case the files are all mp3) ### Audiobookshelf version v2.25.1 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Safari on iOS ### Logs ```shell [2025-07-03 13:29:05.046] DEBUG: [ApiCacheManager] count: 0 size: 0 [2025-07-03 13:29:05.053] DEBUG: [ApiCacheManager] Cache miss: {"user":"diego","url":"/libraries/3822403e-8dae-45c5-b777-7b984732330c?include=filterdata"} [2025-07-03 13:29:05.126] DEBUG: [ApiCacheManager] count: 1 size: 9675 [2025-07-03 13:29:05.135] INFO: [SocketAuthority] Socket Connected to /audiobookshelf/socket.io PxHdgZfVT3ZW-WtrAAAJ [2025-07-03 13:29:05.138] DEBUG: [ApiCacheManager] count: 1 size: 9675 [2025-07-03 13:29:05.150] DEBUG: [SocketAuthority] User Online diego [2025-07-03 13:29:05.216] DEBUG: [ApiCacheManager] Cache miss: {"user":"diego","url":"/libraries"} [2025-07-03 13:29:05.237] DEBUG: Loaded 8 of 8 items for "Continue Listening/Reading" in 0.04s [2025-07-03 13:29:05.243] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.01s [2025-07-03 13:29:05.249] DEBUG: Loaded 0 of 0 items for "Recently Added" in 0.01s [2025-07-03 13:29:05.253] DEBUG: Loaded 0 of 0 series for "Recent Series" in 0.00s [2025-07-03 13:29:05.293] DEBUG: Loaded 10 of 33 items for "Discover" in 0.04s [2025-07-03 13:29:05.302] DEBUG: Loaded 2 of 2 items for "Listen/Read Again" in 0.01s [2025-07-03 13:29:05.306] DEBUG: Loaded 0 of 0 authors for "Newest Authors" in 0.00s [2025-07-03 13:29:05.306] DEBUG: Loaded 3 personalized shelves in 0.10s [2025-07-03 13:29:05.306] DEBUG: [ApiCacheManager] Cache miss: {"user":"diego","url":"/libraries/3822403e-8dae-45c5-b777-7b984732330c/personalized?include=rssfeed,numEpisodesIncomplete,share"} [2025-07-03 13:29:05.307] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL [2025-07-03 13:29:11.688] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-03 13:29:11.689] DEBUG: [PlaybackSessionManager] startSessionRequest for device iOS 18.5 / Mobile Safari [2025-07-03 13:29:11.690] DEBUG: [PlaybackSessionManager] "diego" starting direct play session for item "53815af7-3b2c-4dd7-887e-8da3b89be664" with id acbe87f4-8edb-4801-a377-08f620944fef (Device: iOS 18.5 / Mobile Safari) [2025-07-03 13:29:11.725] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:11.734] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:11.750] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:11.905] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:12.027] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:13.125] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:13.182] DEBUG: [SessionController] Serving audio track 1 for session "acbe87f4-8edb-4801-a377-08f620944fef" belonging to user "diego" [2025-07-03 13:29:33.242] DEBUG: [PlaybackSessionManager] syncSession "acbe87f4-8edb-4801-a377-08f620944fef" (Device: iOS 18.5 / Mobile Safari) | Total Time Listened: 20 [2025-07-03 13:29:33.252] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache [2025-07-03 13:29:33.263] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache ``` ### Additional Notes Tried the following: 1. Playback is successful on a Windows PC using Firefox browser 2. Closed and reopened the app 3. Logged out of and back into the app 4. Restarted the iOS device 5. Restarted Audiobookshelf container
adam added the bug label 2026-04-25 00:11:22 +02:00
adam closed this issue 2026-04-25 00:11:23 +02:00
Author
Owner

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

iOS doesn't support playing mp3 codec in an mp4 container. I'm not sure if that's what you meant with Play an m4b audiobook (in my case the files are all mp3).
If you encoded the m4b files with mp3 codec then it won't be playable on iOS.

@advplyr commented on GitHub (Jul 3, 2025): iOS doesn't support playing mp3 codec in an mp4 container. I'm not sure if that's what you meant with `Play an m4b audiobook (in my case the files are all mp3)`. If you encoded the m4b files with mp3 codec then it won't be playable on iOS.
Author
Owner

@jpw4dev commented on GitHub (Jul 3, 2025):

You are correct, that is what I meant, and that must be the issue. Thanks for the quick response!

@jpw4dev commented on GitHub (Jul 3, 2025): You are correct, that is what I meant, and that must be the issue. Thanks for the quick response!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2866