News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Play radio at a certain time (radio alarm)

Started by purps, May 27, 2013, 08:32:13 PM

Previous topic - Next topic

purps

I have achieved this in "Timed Events" using Xine Player with the "Play Media" command. I've put the radio stream URL into "#59 MediaURL (Special)", and it works, but the radio stream does not appear on the orbiter in the Now Playing square, meaning I cannot turn it off or change the volume.

Does anybody have any suggestions please?

(I do have various radio stations set up under the radio scenario, is it possible to simply play one of these?)

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

sambuca

You should send the command to the Media Plugin instead, using the MH_Play_Media command. This way, the router will be aware of the media and the orbiter will show it as well.

br,
sambuca

purps

#2
Thanks for the reply. That's interesting, I did look at that, but couldn't work out how to play a radio stream. But your advice was the shove in the right direction that I needed!

For anybody else wanting to do this, fill out...

#13 Filename (string)
#45 PK_EntertainArea (string)
#29 PK_MediaType (int)

Where...

#13 Filename (string) = URL of stream (eg "http://www.bbc.co.uk/radio/listen/live/r4_aaclca.pls")
#45 PK_EntertainArea (string) = the ID for the Entertainment Area in which you would like the playback to occur.
#29 PK_MediaType (int) = 4

Hint: If you don't know what the ID is, on the core...
sudo su <ENTER>
mysql -u root -p pluto_main <ENTER>
mysql> SELECT PK_EntertainArea, Description FROM EntertainArea; <ENTER>

Make a note of the ID, and then...
mqsql> quit <ENTER>

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

Marie.O

purps,

thanks for your text. Did you know that we have a wiki? There is an article on how to play radio. Maybe you want to extend that page by your findings.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

purps

1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

purps

I do have one other question regarding this please.

With the stream playing, when I look at the orbiter, I notice that the stream is repeated 4 or 5 times in the playlist. The other day I noticed there were about 10 in there. Any reason for this?

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

sambuca

It could be that the url you use actually is a playlist with urls to the real streams. I can't remember for sure, but I think that this will cause LMCE to expand that playlist into its own playlist, thus presenting each real stream url as its own item in the playlist.

regards,
sambuca

purps

Ah that would make sense. No biggie, just wondered. Thanks.

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]