mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:46:56 -05:00
[Bug]: chromecast error: Load media failed invalid_parameter #2890
Labels
No labels
authentication
awaiting release
backlog
bug
chapter editor
config-issue
ebooks
encoding/embedding
enhancement
help wanted
listening sessions & progress
planned
possible plugin
progress sync
sorting/filtering/searching
unable to reproduce
upload
users & permissions
waiting
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/audiobookshelf#2890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @h4de5 on GitHub (Apr 7, 2025).
What happened?
still trying to figure the actual problem, but I am kind of stuck.
most smaller/shorter audiobooks work correctly and they can be streamed to my chromecast (compatible device). but the big ones always fail.
it seems as soon as they have more than ~30 chapters, streaming directly fails with: "Load media failed invalid_parameter" in javascript console and the player keeps loading.
I also noticed, that for some audiobooks that have around 30-32 chapters, special characters (e.g. a - ) in the title are also a problem, while they are not for those with like 10 chapters only.
I tested it with a sherlock holmes collection of different books - all of them are encoded as mp3, stereo, 320kbit, etc. they do have between 15 and 40 chapters, while their total lenght are always around 70-80min, and their total size is also comparable. all of those with less than ~30 chapters work, while others don't.
What did you expect to happen?
Streaming to chromecast should work regardless of numbers of chapters or title.
The app should try to adapt any incompatibilities before starting the streaming session.
If the streaming still fails for whatever reason, the UI should display the error instead of silently ignoring it.
Steps to reproduce the issue
Audiobookshelf version
v2.20.0
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?
Chrome
Logs
tested with 44 chapters (not working), then with 30 chapters (not working) and another one with 30 chapters (working)
docker logs do not show much
Additional Notes
No response
@Vito0912 commented on GitHub (Apr 11, 2025):
Do you have any other Chromecast device to test on?
Also, could you please send the content of the
chapterInfoandartworkarray for failed items?I have tested it with books that have over 300 chapters as well as with books that have around 30 chapters, including special characters, German umlauts, etc.
I even tested if it was due to too large of a payload. I had a chapter name that was 4MB in size, and it still worked without any issues on my JBL Bar.
@h4de5 commented on GitHub (Apr 19, 2025):
just tested it on an original chromecast audio. same problem :(
i can play individual files but not a whole audio book.
@Vito0912 commented on GitHub (Apr 19, 2025):
What do you mean by this? As far as I know, ABS can only play or stream the whole book (although I might be wrong).
Regarding
chapterInfoandartwork, could you share this information so we can try reproducing the issue with the same data? (And if doable for you, the API response for that book)Also, please try initiating the Chromecast session using another device (for example, the PWA on a smartphone or directly through the Android app).
@h4de5 commented on GitHub (Apr 19, 2025):
I took one of those files and added it as its own audiobook - a single file plays fine (I also assume a bunch of them would also play - it seems to have something to do with the amount or total size)
I am not sure how to extract the chapterInfo. I can see it in the developer console, but when I try to copy it, it only shows: {}
I tested so far (mostly the same issue)
then:
especially the last two tests, which for heaven's sake I can't reproduce - make me think, there is something wrong on my network :
any idea is appreciated
@phaked commented on GitHub (Dec 18, 2025):
I'm experiencing the same behavior. @h4de5 could you resolve the issue?
@h4de5 commented on GitHub (Dec 18, 2025):
i switched to the android app and there it worked so far. it sometimes takes a while until its really connected but it plays eventually
@4wincode commented on GitHub (Feb 14, 2026):
This appears to actually be a track count issue rather than a chapter info issue. Converting the audiobook to M4B through the interface makes casting from web work perfectly for me.