mini-media-player
mini-media-player copied to clipboard
Cover image keeps disappearing when using Android TV (ADB)
v.1.13
I am using an android tv box, integrated into home assistant with ADB. It uses adb shell to get screencaps of the device to display them as cover image.
Card:
type: custom:mini-media-player
entity: media_player.androidtv_mibox_adam
artwork: full-cover
Here's the issue I'm having. Frequently, the image disappears and only a white/grey background is shown, only to reappear a second later. What I suppose is happening, is the adb shell is not responding fast enough with the images or there is a limit of number of queries in a given timeframe so the requests are being rejected, and when the card does not receive one it clears the displayed image and shows blank.
Proposed solution would be to keep the previous image until the next image has been received and is ready to be displayed.
Hello, Would you be able to debug this further and check what the picture attribute is set to when it shows as blank?
Sorry it took me a while to get back to it.
I lowered the refresh rate of the media player entity and it's happening a lot less so it was harder to notice, but as far as I can tell, the entity_picture
attribute is still a link to a file even when it's blank, just the number on the end changes after every refresh
entity_picture: /api/media_player_proxy/media_player.androidtv_mibox_adam?token=[redacted]&cache=1633636681.028589
Alright, yes that's probably the issue then. Not much I can do about this I believe, unfortunately.
this happens with the built-in media player too, FYI.