-
Notifications
You must be signed in to change notification settings - Fork 102
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
Allow Chromecast provider to handle/avoid images which are "too big" #1806
Allow Chromecast provider to handle/avoid images which are "too big" #1806
Conversation
I don't think this should even be an option. Let's just limit all images that are sent to a player directly to 512x512, which is also the max for some other players like airplay |
My logic was that this was in the same set of things as the "force mp3" behaviour, but that's fine, I can make the change. Do you want this to happen in the core |
Yeah, but enabling the mp3 mode is more a choice where this is more a bug; sending a large image will simply crash the device. Let's just adjust the "get_image_url" with a "size=512" parameter in the individual player providers, starting with cast. |
Ah, I misunderstood the mp3 option as being a workaround for buggy players too.
Changing just that one in The one in In this PR I didn't touch the one in |
I added some radio stations and those do go via |
d0b7a6f
to
36d58e1
Compare
That was just a code example. It would need to be adjusted in all parts that handle the image from the queue item. Idea can be that we go with your patch now and if this pops up again, we know we have to adjust it to the proxy everywhere ? |
Debian systems do not have Python3 as `python`. With this change developers on that platform can use: ```console $ PYTHON=python3 ./scripts/setup.sh ```
My Chromecast Ultra crashes when presented with cover images on the order of 5000x5000 pixels (I've not determined the actual limit, 2048x2048 is ok though). This sets the default size in the player queue to 512x512 which affects all players, as well as a chromecast specific codepath. Of the other callers of `get_image_url` airplay already sets a size of 500x500 while the slimproto and sonos players do not set any limit. Fixes: music-assistant/hass-music-assistant#3285
36d58e1
to
a631d30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
My Chromecast Ultra crashes when presented with cover images on the order of 5000x5000 pixels (I've not determined the actual limit, 2048x2048 is ok though).
Allow users to avoid this problem by providing an advanced option per player which downscales the image to a specified size.
Fixes: music-assistant/hass-music-assistant#3285