Code:
--[[
Streaming Radio Player extension for VLC >= 1.1.0
Authors: Ben Dowling (http://www.coderholic.com)
--]]
stations = {
{ name = "BBC Radio3 HD", url = "http://www.bbc.co.uk/radio/listen/live/r3_aaclca.pls" },
{ name = "Norway Radio Klassisk 192", url = "http://lyd.nrk.no:80/nrk_radio_klassisk_mp3_h" },
{ name = "Radio Mozart", url = "http://listen.radionomy.com/radio-mozart.m3u" },
{ name = "Poland", url = "http://91.121.92.167:8900" },
{ name = "Classical Persian http://www.iranianradio.com/#", url = "http://213.73.255.244:10700" },
{ name = "Radio-Orfei RUSSIA", url = "mms://live.rfn.ru/orfey-128/" },
{ name = "Bayern 4 Klassik", url = "mms://gffstream-w8a.wm.llnwd.net/gffstream_w8a" },
{ name = "SwissRadio Küsnacht, Swiss", url = "http://www.swissradio.ch/streams/6034.asx" },
{ name = "Venice Classic Radio ITALIA", url = "http://www.veniceclassicradio.eu/live1/128.asx" },
{ name = "SwissRadio Küsnacht, Swiss Opera", url = "http://www.swissradio.ch/streams/6060.asx" },
{ name = "Radio Darvish Classical Persian", url = "http://207.200.96.228:8078/" },
{ name = "WGBH Boston USA", url = "http://streams.wgbh.org:8006/" },
{ name = "radio spivakov russia", url = "http://radio.corbina.ru:8229/" },
{ name = "RTVE3 ☮☮ Cuando los elefantes sueñan con la música", url = "http://195.10.10.210/rtve/radio3.mp3" },
{ name = "Radio Suisse Classique", url = "http://www.radiosuisseclassique.ch/live/mp3.m3u" },
{ name = "Denmark dr.dk", url = "http://www.dr.dk/netradio/Metafiler/ASX/DR_P2_128.asx" },
{ name = "Austria RadioStephansdom", url = "http://srvhost24.serverhosting.apa.net:8000/rsdstream128.m3u" },
{ name = "France Musique", url = "http://www.tv-radio.com/station/france_musique_mp3/france_musique_mp3-128k.m3u" },
{ name = "Espana Radio Clasica", url = "http://radioclasica.rtve.stream.flumotion.com/rtve/radioclasica.mp3.m3u" },
{ name = "Slovak Radio Klasika", url = "http://live.slovakradio.sk:8000/Klasika_256.mp3.m3u" },
{ name = "Slovak Radio Devin", url = "http://live.slovakradio.sk:8000/Devin_256.mp3.m3u" },
{ name = "Sverige-Sweden 1", url = "http://sverigesradio.se/topsy/direkt/1603-hi-mp3.pls" },
{ name = "Sverige-Sweden 2", url = "http://sverigesradio.se/topsy/direkt/2562-hi-mp3.pls" },
{ name = "Czech classic", url = "http://www.play.cz/radio/classic128.asx" },
{ name = "Latvia", url = "http://82.135.234.195/Klasika.asx" },
{ name = "BBC Radio3 192kbps", url = "http://bbc.co.uk/radio/listen/live/r3.asx" },
{ name = "P2 musik Sverige-Sweden", url = "http://http-live.sr.se/p2musik-aac-192" },
{ name = "Deutschland MDR Figaro", url = "http://avw.mdr.de/livestreams/mdr_figaro_live_128.m3u" },
{ name = "Deutschland MDR Klassik", url = "http://avw.mdr.de/livestreams/mdr_klassik_live_128.m3u" },
{ name = "Классическая музыка MyRadio.com.ua ", url = "http://music.myradio.com.ua:8000/Classica128.ogg" },
{ name = "Finland rondofm", url = "mms://mms.rondofm.fi/RondoHF" },
{ name = "Belgium RTBF Musiq 3 French-Speaking", url = "http://streaming.rtbf.be:8000/mus3128xrtbf.m3u" },
{ name = "Estonia Klassikaraadio", url = "http://web.mmm.elion.ee/klassikaraadio.asx" },
}
function descriptor()
return { title = "Streaming Radio Player" ;
version = "0.1" ;
author = "Ben Dowling" ;
capabilities = {} }
end
function activate()
dlg = vlc.dialog("Streaming Radio Player")
list = dlg:add_list(1, 3, 4, 1)
button_play = dlg:add_button("Play", click_play, 1, 4, 4, 1)
-- Add the radio stations
for idx, details in ipairs(stations) do
list:add_value(details.name, idx)
end
dlg:show()
end
function click_play()
selection = list:get_selection()
if (not selection) then return 1 end
local sel = nil
for idx, selectedItem in pairs(selection) do
sel = idx
break
end
details = stations[sel]
-- Play the selected radio station
vlc.playlist.clear()
vlc.playlist.add({{path = details.url; title = details.name; name = details.name}})
vlc.playlist.play()
end
function deactivate()
end
function close()
vlc.deactivate()
end
Bookmarks