Autor Tópico: Player de radio com problema  (Lida 341 vezes)

Offline Jakoozie

  • Newbie
  • *
  • Mensagens: 1
  • Reputação: +0/-0
    • Ver Perfil
Player de radio com problema
« em: Agosto 22, 2010, 12:13:34 pm »
Olá,

Estou a desenvolver um site para um rádio mas estou com um problema. Entro no site e a radio começa a tocar, carrego no botão para parar a musica e volto a meter play para a musica voltar a tocar, mas a música não toca.


Código: [Seleccione]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Player</title>
<style type="text/css">
body {
background-image: url(player_ficheiros/bg.jpg);
background-repeat: repeat-x;
background-color: #000;
margin-top: 0px;
margin-left: 0px;
}
.noar {
padding:0;
margin:0;
color:#fff;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size:11px;
}
.emcima {
padding:0;
margin:0;
}
</style>

<script type="text/javascript">
var MFMPlayer='<OBJECT ID="MBFMPlayer" width=1 height=1 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"   CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft® Windows® Media Player components..."         type="application/x-oleobject">  <PARAM NAME="AutoStart" VALUE="True">  <PARAM NAME="FileName" VALUE=" http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.asx">  <PARAM NAME="ShowControls" VALUE="True">  <PARAM NAME="ShowStatusBar" VALUE="False">  <EMBED type="application/x-mplayer2"    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"   SRC=" http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.asx"   name="MBFMPlayer"   width=1   height=1   autostart=1   showcontrols=0>  </EMBED></OBJECT>';

function iniciaraudio()
{
document.getElementById('media').innerHTML=MBFMPlayer;
}

function pararaudio()
{
document.getElementById('media').innerHTML="";
}
</script>


</head>

<body>

<div style="margin: auto; width: 800px; height: 50px;" class="emcima">
<table width="800" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
  <td width="114">
    <td width="81"><a href="javascript:iniciaraudio();" ><img src="img/play.png" alt="Play" name="play" id="play" width="48" border="0" height="48"></a></td>
    <td width="142"><a href="javascript:pararaudio();" ><img src="img/stop.png" alt="Pausar" name="pausar" id="pausar" width="48" border="0" height="48"></a></td>
    <td width="319"><div style="width:200px; height:50px;" class="noar">

<div style="width:300px; height:50px;" class="noar">
  <div style="width:155px; margin-left:60px; padding-top:5px;"  class="noar">
  <div  class="noar"><div align="center"><MARQUEE
direction="left" scrolldelay="150"><STRONG>Música actual:</STRONG> <span id="cc_stream_info_song">Carregando...</span><br />
<STRONG>No ar:</STRONG> <span id="cc_stream_info_title"></span><br/>!</a></MARQUEE></DIV></div>
</div>
</div>

</div>
</td>
    <td width="48"><a href="http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.asx" target="_blank"><img src="img/wmp.png" alt="Ouvir no Windows Media Player" name="wmp" id="wmp" width="48" border="0" height="48" /></a></td>
    <td width="48"><a href="http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.ram" target="_blank"><img src="img/real.png" alt="Ouvir no Real Player" name="real" id="real" width="48" border="0" height="48"></a></td>
    <td width="48"><a href="http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.pls" target="_blank"><img src="img/winamp.png" alt="Ouvir no Winamp" name="wnp" id="wnp" width="48" border="0" height="48"></a></td>
  </tr>
</tbody></table>
</div></div>
<script language="javascript" type="text/javascript" src="http://cast.visual-fusion.com/system/streaminfo.js"></script>

<script language="javascript" type="text/javascript" src="http://cast.visual-fusion.com/js.php/rodrigo/streaminfo/rnd0"></script>


<div id="media">
  <OBJECT ID="MediaPlayer1" name="MediaPlayer1" width=1 height=1 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="A carregar..." type="application/x-oleobject">
  <PARAM NAME="AutoStart" VALUE="true"><PARAM NAME="FileName" VALUE="http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.asx">
  <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="http://cast.visual-fusion.com/tunein.php/rodrigo/playlist.asx" name="MediaPlayer1" width=1 height=1 autostart=1>
  </EMBED>
  </OBJECT>
</div>

</body></html>

Podem confirmar aqui www.musicboxfm.biz.ht


O que se passa?

PS: Por Favor tudo que esteja com erros digam-me.



Muito Obrigado!