mini-media-player
mini-media-player copied to clipboard
Mute icon not showing up
Mute option is not showing up even if my media_player entity support it.
i can't figure out why..
not a problem with hide: properties.
Came here to look for this same issue - on 1.7 and no mute icon. I use a Roku which doesn't support set volume so have:
artwork: full-cover entity: media_player.roku_tv type: 'custom:mini-media-player' volume_stateless: true hide: power: true mute: false
Hello, the mute button is not supported and won't render on entities which doesn't support a mute state.
my entity does support mute.
What media player component is it and what attributes does it expose if you go to /developer-tools/state
.
Is a TV integrated via smartir (broadlink cloning and sending codes)

i've also have another tv with the same config and it works great with your card..
Please turn the entity on and press the media_player.televisore_camera
text, go to the top of the page and copy all the attributes visible there.

like this?
also on this screenshot you can see that the default media player does support mute (and is working) but on the left side there is your card without the mute option..

Yes, thanks. As I described before the card doesn't display the mute icon if there's no mute state exposed by the entity, which there isn't in this case.
but the other tv (the one in the living room) integrated in the same way is working.
screenshot here:

Not to clutter the thread - but I believe my media player also supports mute, it is exposed via the Roku remote card. Looking at the media player state in developer tools it lists: supported_features: 18876 Which if I translate to binary is 100100110111100 According to the constants file the bitflag for mute on a media device is 8 (1000)
That bit is 1 in 18876 - so it seems like it thinks it supports mute. If there is an easier way to confirm please let me know
As I described before the card doesn't display the mute icon if there's no mute state exposed by the entity, which there isn't in this case.
The card will currently only display the mute icon if the is_volume_muted
attribute is defined on the entity.
https://github.com/kalkih/mini-media-player/blob/fa1427db8be8b7f099d01df4b7feb8df954b68a7/src/model.js#L185-L187
We could potentially change this in the future to go by the supported features attribute instead, feel free to submit a PR.
@niccolobusato can you share your theme please? Thanks.
@agneevX should be this one. https://github.com/niccolobusato/Main-Home-AssistantConfig/blob/2020/themes/dark_green.yaml