Posted by Ruben in My Life
My set-up:
NAS: QNAP TS219p (running Twonky Media Server Version 4.4.17)
Media player: Zyxel DMA-2500
I only used it so far with some shoutcast radio station, but what if you have a radio station that’s not listed on the shoutcast list?
Answer: CREATE A PLAYLIST!
Just create a playlist file in m3u format.
It should look something like this:
#EXTM3U
#EXTINF:-1,HARD.fm @192k mp3 – Your #1 Hardstyle Radio
http://192.mp3.streams.lsw.evo.hard.fm:8000/
Store your .m3u file in one of your Twonky media folders and re-scan your folders.
If I go to my media player i can connect to my Twonky server:

Then select Internetradio and there should your station be listed:

and PLAY!

I needed some feedback on my dijit.form.combox and a queryreadstore to fetch the list.
If you press the dropdown button it would be nice to display a loading image.
Nice website to create your loading image: ajaxload.info
The following widget extends the default combobox:
dojo.provide("myWidgets.ComboBox");
dojo.declare
(
"myWidgets.ComboBox",
[dijit.form.ComboBox],
{
// summary:
// extended version of the dijit form ComboBox widget with a loading image.
// Loading image will appear on the start search and will disappear on the show result list.
dropdownbutton: "",
loadingImg: "
",
/* *********************************************************** postCreate */
postCreate: function()
{
this.inherited(arguments);
//store the current dropdownbutton
this.dropdownbutton = this.downArrowNode.innerHTML;
},
/* ********************************************************* _startSearch */
_startSearch: function(evt)
{
this._updateButtonStateLoading();
this.inherited(arguments);
},
/* ****************************************************** _showResultList */
_showResultList: function(evt)
{
this._updateButtonStateDefault();
this.inherited(arguments);
},
/* ******************************************** _updateButtonStateLoading */
_updateButtonStateLoading: function()
{
//set the loading image
this.downArrowNode.innerHTML = this.loadingImg;
},
/* ******************************************** _updateButtonStateDefault */
_updateButtonStateDefault: function()
{
//set default dropdown button back
this.downArrowNode.innerHTML = this.dropdownbutton;
}
}
);
Just found this javascript to disable the close and escape button of the DOJO dijit.Dialog (source)