Funkcionalnosć tutoho sydła so přez wothladowanske dźěła wobmjezuje, kotrež maja waše dožiwjenje polěpšić. Jeli nastawk waš problem njerozrisuje a chceće prašenje stajić, wobroćće so na naše zhromodźenstwo pomocy, kotrež na to čaka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomhać.

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Dalše informacije

Code for embedded wav file

  • 3 wotmołwy
  • 0 ma tutón problem
  • 1 napohlad
  • Poslednja wotmołwa wot oldtraveler

more options

I am unable to create an html code that will play a brief wav file on Firefox 44. Previously I successfully used the following code. Why doesn't it work anymore? What code can I use?

<OBJECT ID="MediaPlayer1" 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" width="1" height="1"> <PARAM NAME="fileName" VALUE="http://philsden.com/01/wav/superm.wav"> <PARAM NAME="animationatStart" VALUE="true"> <PARAM NAME="transparentatStart" VALUE="true"> <PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="false"> <PARAM NAME="Volume" value="-100"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="http://philsden.com/01/wav/superm.wav" name="MediaPlayer1" width=0 height=0 autostart=1 showcontrols=0 volume=-100> </OBJECT>

I am unable to create an html code that will play a brief wav file on Firefox 44. Previously I successfully used the following code. Why doesn't it work anymore? What code can I use? <OBJECT ID="MediaPlayer1" 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" width="1" height="1"> <PARAM NAME="fileName" VALUE="http://philsden.com/01/wav/superm.wav"> <PARAM NAME="animationatStart" VALUE="true"> <PARAM NAME="transparentatStart" VALUE="true"> <PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="false"> <PARAM NAME="Volume" value="-100"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="http://philsden.com/01/wav/superm.wav" name="MediaPlayer1" width=0 height=0 autostart=1 showcontrols=0 volume=-100> </OBJECT>

Wubrane rozrisanje

Hi oldtraveler, your code snippet is specific to the Windows Media Player plugin, which may not be very widely installed any more.

Inside your OBJECT, try replacing the EMBED tag with these lines:

<audio controls>
  <source src="http://philsden.com/01/wav/superm.wav" 
   type="audio/wav">
</audio>

More info: https://developer.mozilla.org/docs/Web/HTML/Element/audio

Tutu wotmołwu w konteksće čitać 👍 0

Wšě wotmołwy (3)

more options

Wubrane rozrisanje

Hi oldtraveler, your code snippet is specific to the Windows Media Player plugin, which may not be very widely installed any more.

Inside your OBJECT, try replacing the EMBED tag with these lines:

<audio controls>
  <source src="http://philsden.com/01/wav/superm.wav" 
   type="audio/wav">
</audio>

More info: https://developer.mozilla.org/docs/Web/HTML/Element/audio

more options

Firefox can play this file in an audio tag, so there is no reason to specify a plugin unless you want to support visitors with older browser.

<audio src="http://philsden.com/01/wav/superm.wav" controls>
data:text/html;charset=utf-8;base64,PGF1ZGlvIHNyYz0iaHR0cDovL3BoaWxzZGVuLmNvbS8wMS93YXYvc3VwZXJtLndhdiIgY29udHJvbHM+

Keep in mind that is isn't polite to hide the player controls and the player (width=0, height=0) as that makes it impossible for visitor to mute the sound.

more options

Thanks. The audio tag did it.