Simple Internet Radio controlled by menu

If you listen only to a few favorite internet-radio-stations and want a small, simple, but working solution without a gui, you may like this button.

It uses free and portable "mpg123", which you can download here:

http://www.mpg123.de/download.shtml
Note: You only need "mpg123.exe" from static archive.

Instruction

Left-click on button shows up a menu with all radio-stations, right-click on button closes/stops.

  1. Include your favorite url's or local playlists (.m3u). Some playlists from "Hotmix Radio" (my favorite :wink:) are included.

  2. Change path to mpg123-folder to yours (Default: "/dopusdata\User Data", working for portable DO)

<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none" type="three_button">
	<label>Radio On</label>
	<icon1>#play</icon1>
	<button backcol="none" display="both" textcol="none">
		<label>Radio On</label>
		<icon1>#play</icon1>
		<function type="normal">
			<instruction>@runmode hide</instruction>
			<instruction>@set url = {dlgchoose|Please choose radio-station:|Hotmix Radio - 1980&apos;s=http://www.hotmixradio.fr/stream/80.m3u+Hotmix Radio - 1990&apos;s=http://www.hotmixradio.fr/stream/90.m3u+Hotmix Radio - 2000&apos;s=http://www.hotmixradio.fr/stream/2000.m3u+Hotmix Radio - Dance=http://www.hotmixradio.fr/stream/dance.m3u+Hotmix Radio - Frenchy=http://www.hotmixradio.fr/stream/frenchy.m3u+Hotmix Radio - Funky=http://www.hotmixradio.fr/stream/funky.m3u+Hotmix Radio - Golds=http://www.hotmixradio.fr/stream/golds.m3u+Hotmix Radio - Hip-Hop=http://www.hotmixradio.fr/stream/hiphop.m3u+Hotmix Radio - Hits=http://www.hotmixradio.fr/stream/hits.m3u+Hotmix Radio - Hot=http://www.hotmixradio.fr/stream/hot.m3u+Hotmix Radio - Lounge=http://www.hotmixradio.fr/stream/lounge.m3u+Hotmix Radio - New=http://www.hotmixradio.fr/stream/New.m3u+Hotmix Radio - Rock=http://www.hotmixradio.fr/stream/rock.m3u+Hotmix Radio - Sunny=http://www.hotmixradio.fr/stream/sunny.m3u+Hotmix Radio - VIP=http://www.hotmixradio.fr/stream/vip.m3u}</instruction>
			<instruction>Taskkill /IM mpg123.exe</instruction>
			<instruction>/dopusdata\user data\mpg123.exe -q -@ &quot;{$url}&quot;</instruction>
		</function>
	</button>
	<button backcol="none" display="both" textcol="none">
		<label>Radio Off</label>
		<icon1>#play</icon1>
		<function type="normal">
			<instruction>@runmode hide</instruction>
			<instruction>Taskkill /IM mpg123.exe</instruction>
		</function>
	</button>
</button>

Of course you can do more with mpg123...

2 Likes

Hey Sasa,
This is very cool and an effortless idea.
and good choice of music.

cheers

Minimalistic and efficient.. o) Thanks!

For anybody using a proxy-server, you need to add "-p proxy:port" to the command line to make mpg123 "go there", it does not look up windows system-settings.

Hello, i like the idea a lot, but i've been struggling for several days to get it working in opus 11.7.
mpg123 is in scripts\mpg123 including the .dll files
I've created a button in the toolbar & after clicking it shows the menu with radiostations allright, after selecting one nothing happens.
When entering the command by hand in CLI: mpg123.exe -@ hotmixradio.fr/stream/80.m3u it plays immediately

What could be wrong?

I changed the player in MPC-hc64.exe (just copied the MPC-HC folder to scripts)
Now it works as it should, only with a different player.

Thanks again for the idea.

Sorry for resurrection but that is really great radio stuff. Any chance to show artist/song in titlebar or something like that?

Independent from the possibilty to do that via a script (I'm not a programmer), AFAIK Hotmix does not send any informations about actual song played (except on their webpage).

I tried mpg123 with my station of choice in command line and info is there about songs, was thinking maybe this info could be sent somehow to somewhere in Directory Opus.

There was an update, you now only need the "mpg123.exe" from the static x86-/x64-archiv.

With the update "mpg123" now can output what you're listening to. Is there a way to show this in a DO-button/-toolbar? This would add the final touch :-).

Original post was from 2014, updated code/post.