kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.54k stars 208 forks source link

Cannot stream url to sonos illegal mime type #839

Open StefanW86 opened 7 months ago

StefanW86 commented 7 months ago

Hello, i am trying mini media player and want to add some shortcuts. This works well for my arylic/linkplay devices, but not with sonos.

I got the error message:

media_player/play_media. Error calling SonosMediaPlayerEntity._play_media on media_player.terrasse: UPnP Error 714 received: Illegal MIME-Type from 192.168.178.167

if i remove type: music and add data: i got the following error message that media_content_type is missing.

Fehler beim Aufrufen des Diensts media_player/play_media. required key not provided @ data['media_content_type']

So i cannot stream to my sonos devices. My full code `type: custom:mini-media-player entity: media_player.terrasse shortcuts: columns: 2 buttons:

Drafteed commented 5 months ago

Looks like a problem with the Sonos integration, not the media player card.

StefanW86 commented 5 months ago

I found a workaround. I changed the url from https://.... to x-rincon-mp3radio://... this works well. Interesting part is, if i use a script to start a webradio stream to my sonos players, it works with https://