The stream I’m playing is: https://nwmedia-kgbi.streamguys1.com/kgbi-mp3
This results in the following error in my logs when I try to stream:
2021-01-04 10:40:51 ERROR (SyncWorker_10) [homeassistant.components.sonos.media_player] Sonos does not support a media type of "audio/mp4"
I changed the 'audio/mp4' to 'music' and music, but all three result in the same error shown above. I restarted HA in between to ensure the js file was using the new version. Anything else I can try to stream radio to a Sonos Play:3?
I’m not sure I understand. Are you saying adding “.mp3” to the end of your stream url made it work for you on a Sonos? Because when I add “.mp3” to my url, the stream no longer works at all.
I didn’t try local files because Sonos can already play those. I’m not using SSL with HA, so I’m not sure how that comes into play with this issue. Thanks for your reply.
I see now that your example URL doesn’t point to a file. I didn’t read that it is a radio station. I think you need to add it to Sonos and then you can choose it as a source in Home Assistant. That’s what I read in the forum.
Also try media_content_type: 'channel' might be worth a try as well.