VLC playlist radio
From WiKim
Contents |
[edit]
Introduction
Is it possible to make a VLC playlist radio?
Inspired by the simple VLC Dashboard Widget and the DR Netradio m3u playlist.
[edit]
The idea
Collect a list of links to net radio and TV stations, make them selectable from a webfront end og a widget.
Features of the player:
- Simple UI: Much like iTunes Radios og last.fm player. Display station name and currently played artist (requires some programming). Think wired iPod shuffle, with links to online resources.
[edit]
Analysis
[edit]
VLC DashBoard
The VLC DashBoard widget features a simple UI, and it uses JavaScript code to activate the VLC player through this AppleScript code:
// buttonPress()
//
// when a button is pressed, this gets called from mouseDown
// it sends a straight unix command with applescript to VLC
function buttonPress(VLC_Event) {
var obj = widget.system("/usr/bin/osascript -e 'tell application \"VLC\"' -e \""+VLC_Event+"\" -e 'end tell' ", null);
}
The buttonPress code is triggered from the JavaScript code, when the mouse is clicked:
// mouseDown()
//
// during a button press this will change the image to look like it is being pressed
// then call buttonPress
function mouseDown(event, id) {
event.target.src = "Images/"+id+"_blue.png";
buttonPress(id);
}
[edit]
DR playlists
Each DR station has a playlist, implemented in HTML/JavaScript. DR also has a currently playing/playing next widget, implemented in Flash.
How annoying, should I drop them a note asking for APIs?
I could of course reverse engineer the playlist and turn it into a feed.

