Problemi con file mp3 e wmv

Re: Problemi con file mp3 e wmv

di Gianluca Mazzeo -
Numero di risposte: 0
Ciao ,

Se può esserti utile, il problema è risolvibile su IE ma non posso aiutarti su Mozilla,

1. Crea un file con estens. wvx


2 inserisci all'interno del wvx

<ASX VERSION=" 3.0">
<ENTRY>
<REF HREF="nomefile.wmv" />
</ENTRY>
</ASX>

....salva il file


3. inserisci all'interno del file html il seguente codice visual basic script:

<SCRIPT LANGUAGE="VBScript">
<!--
On Error Resume Next
lngMP70 = IsObject(CreateObject("WMPlayer.OCX"))

' Windows Media Player 7 Code
If (lngMP70) Then
document.write "<OBJECT ID=MediaPlayer "
document.write " CLASSID=CLSID:6BF52A52-394A
-11D3-B153-00C04F79FAA6"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""420"" height=""340"">"
document.write "<PARAM NAME=""url"" VALUE="" nomefile.wvx"">"
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">"
document.write "</OBJECT>"

' Windows Media Player 6.4 Code
Else
document.write "<OBJECT ID=MediaPlayer "
document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
document.write "CODEBASE=http://activex.microsoft.com/ "
document.write "activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""420"" height=""340"">"
document.write "<PARAM NAME=""FileName"" VALUE="" nomefile.wvx"">"
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "</OBJECT>"
End If

-->
</SCRIPT>


.....salva tutti i file nella cartella remota del tuo hosting .


ovviamente è visibile solo su IE.

http://www.immiweb.org/av2.htm

ciao
GM
Agenzia web