hai ragione ,quello avevo fatto io ,sbagliando,allora io sono partito da:
<script>
var streams = new Array();
streams[0] = new makeStream("http://discoradio.fabbricadigitale.it/asx/discoradio.asx", "DiscoRadio");
streams[1] = new makeStream("http://62.101.82.64/player/rds.asx", "RDS");
streams[2] = new makeStream("mms://151.1.245.3/1-2", "Radio 105");
streams[3] = new makeStream("http://www.rtl.it/mediaplayer/rtl1025.asx", "RTL 102.5");
streams[4] = new makeStream("http://www.radiomontecarlo.net/RMC_04/PlayerRMC/player64_2.htm", "Montecarlo");
streams[5] = new makeStream("http://live.mediaserver.kataweb.it/radiodeejay", "Radio DeeJay");
function makeStream(url, name) {
this.url = url;
this.name = name;
}
function handleControlsOnOffClick() {
if (document.mediaPlayer.showControls == true) {
document.mediaPlayer.showControls = false;
document.playerCtrl.controls.value = ” Show Controls “;
}
else {
document.mediaPlayer.showControls = true;
document.playerCtrl.controls.value = ” Hide Controls ”
}
}
function handlePlayOrPauseClick(){
var state;
playerStatus = document.mediaPlayer.playState;
if (playerStatus == 6) {
document.mediaPlayer.play();
document.playerCtrl.playOrPause.value = ” Pause “;
}
else if (playerStatus == 1) {
document.mediaPlayer.play();
document.playerCtrl.playOrPause.value = ” Pause “;
}
else if (playerStatus == 2) {
document.mediaPlayer.pause();
document.playerCtrl.playOrPause.value = ” Play “;
}
}
function changeSize(newSize) {
document.mediaPlayer.displaySize = newSize;
}
function change() {
var list = document.playerCtrl.streams;
var streamURL = list.options[list.selectedIndex].value;
document.mediaPlayer.stop();
document.playerCtrl.playOrPause.value = ” Pause “;
document.mediaPlayer.fileName = streamURL;
pstatus.innerHTML = “In attesa”;
speed.innerHTML = “In attesa”;
buffer.innerHTML = “In attesa”;
}
function playerstatus() {
code = mediaPlayer.OpenState;
if (code == 0) code = “In attesa”;
if (code == 1 || code == 2) code = “Caricamento dati”;
if (code == 3) code = “Ricerca Server”;
if (code == 4) code = “Connesso”;
if (code == 5) code = “”;
if (code == 6) code = “Connesso”;
pstatus.innerHTML = code;
buffer.innerHTML = “ ” + mediaPlayer.BufferingProgress + “%”;
speed.innerHTML = “ ” + parseInt(mediaPlayer.Bandwidth / 1024) + ” Kbps”;
}
</script>
<body onLoad=’window.setInterval (”playerstatus()”,800);’>
<FORM NAME=”playerCtrl”>
<INPUT TYPE=”hidden” VALUE=” Pause ” NAME=”playOrPause”>
<SCRIPT>
with (document) {
writeln(’<SELECT NAME=”streams” onChange=”change()”>’);
for (var i = 0; i < streams.length; i++) {
writeln(’<OPTION VALUE=”‘, streams
.url, ‘”>’, streams.name);
}
writeln(’</SELECT>’);
}
</SCRIPT>
</FORM>
Stato:<span id=”pstatus” style=’font-size:10px’>In attesa</span><br>
Buffer:<span id=”buffer” style=’font-size:10px’>In attesa</span><br>
Velocita’:<span id=”speed” style=’font-size:10px’>In attesa</span><br>
<br>
<OBJECT
ID=”mediaPlayer”
CLASSID=”CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95?
CODEBASE=”http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701?
STANDBY=”Loading Microsoft Windows Media Player components…”
TYPE=”application/x-oleobject”
STYLE=”WIDTH:282px;HEIGHT:26px”>
<PARAM NAME=”SendOpenStateChangeEvents” VALUE=”true”>
<PARAM NAME=”fileName” VALUE=”http://discoradio.fabbricadigitale.it/asx/discoradio.asx”>
<PARAM NAME=”animationatStart” VALUE=”false”>
<PARAM NAME=”transparentatStart” VALUE=”true”>
<PARAM NAME=”autoStart” VALUE=”true”>
<PARAM NAME=”showControls” VALUE=”true”>
<PARAM NAME=”AudioStream” VALUE=”true”>
<PARAM NAME=”ShowControls” VALUE=”true”>
<PARAM NAME=”ShowAudioControls” VALUE=”true”>
<PARAM NAME=”ShowDisplay ” VALUE=”false”>
</OBJECT>
ma questo ,funge per WMplayer, e non riesco a farlo fungere con Real, anche se scambio i dati dei 2 player.certamente cambio anche le radio con quelle che trasmettono in formato real.
il player real è:
<OBJECT ID=RVOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=375 HEIGHT=100>
<PARAM NAME="CONTROLS" VALUE="All">
<PARAM NAME="CONSOLE" VALUE="one">
<EMBED SRC="plugin.rpm" WIDTH=375 HEIGHT=100 NOJAVA=true CONTROLS=All CONSOLE=one>
</OBJECT>