Event.observe(window, 'load', function () {
Player = new play();
var radio = new SWFObject('gamedata/player.swf', 'mpl', '1', '1', '9');
radio.addParam('allowfullscreen', 'false');
radio.addParam('allowscriptaccess', 'always');
radio.addParam('wmode', 'opaque');
radio.addVariable('duration', '99999');
radio.addVariable('file', 'http://server4.**********:8002/;stream.nsv');
radio.addVariable('provider', 'sound');
radio.addVariable('volume', '100');
radio.addVariable('autostart', 'true');
radio.addVariable('playerready', 'playerr');
radio.write('player');
volSlide = new Control.Slider($('volume_bit'), $('volume_track'), {
sliderValue: 0.5,
onSlide: function (v) {
v = v * 100;
RadioPlayer.sendEvent('volume', v);
},
onChange: function (v) {
v = v * 100;
if (muted && v > 1) {
muted = false;
} else if (!muted && v < 1) {
muted = true;
}
}
});
volSlide.setValue(0.5);
});
var RadioPlayer;
var muted = false;
function playerr(obj) {
RadioPlayer = document.getElementById(obj['id']);
};alvast bedankt voor het reageren!