Does anyone know what urls should be usable? I’m trying to play a iheartradio stream. On my pc a bunch of them work, but I can’t figure out the url that the chromecast will accept via the playurl command.
I’m not that experienced with Chromecast. But the URI below works for me.
Just for the sake of excluding other issues, try this link (I’m not sure if you would like this music ).
If it doesn’t, there is maybe something else going on.
If it does work, maybe your radio also provides an MP3 stream?
rule "Play an MP3 file"
when
Item TEST_Chromecast_GV_Living_Play_Trigger changed from OFF to ON
then
Chromecast_GV_Living_PlayURI.sendCommand("http://lb.topradio.be/topradio.mp3")
Chromecast_GV_Living.sendCommand(PLAY)
end
Yeah another station that did have an mp3 stream worked. I had a quick look at the chromecast api, and it said aac was supported, so I was hoping it would work.
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
4
Is there a Solution to play a non mp3 Stream?
For Example via Karaph Command:
smarthome:audio stream chromecast:chromecast:598d4f3a243c69ae73ed124a8b8bc838 http://stream.electroradio.fm/128k
works.
When i send the Url via rule to my Chromecast nothin happend.
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
6
I’m just guessing here…
I think… It’s something to do with the ChromeCast default player.
Now I might be wrong (very strong chance), but I think there isn’t a way for OH to tell the ChromeCast which player to use.
I’d like to tell it to use TuneIn so that I can then request streams that TuneIn supports. (As an example)
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
7
FYI
I have tried the link you posted by using the Play URL command in PaperUI/Control and it worked.
Likewise, I pasted the URL into the same command in an “Experimental Rules” Rule
PaperUI/Rules
And it worked too.
I haven’t got close to figuring out how the text based rules work yet…