Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

wav file generates an error about associated protocol

  • 2 Antworten
  • 1 hat dieses Problem
  • 2 Aufrufe
  • Letzte Antwort von cor-el

more options

I am trying to get a sound to play when an event happens on my page. I added a link so that I could click on it to make it play, but when I do i am getting this error message: Firefox doesn’t know how to open this address, because one of the following protocols (c) isn’t associated with any program or is not allowed in this context. I have done some searching but can't find a solution. I know that you disabled plugins, but is there not a way to play sounds in Firefox anymore? Here is the object I setup: <object type="audio/x-wav" data="C:\Windows\Media\StarTrek\DistressCall.wav">

 <param name="src" value="C:\Windows\Media\StarTrek\DistressCall.wav">
 <param name="autoplay" value="true">
 <param name="autoStart" value="1">
  <a href="C:\Windows\Media\StarTrek\DistressCall.wav">test.wav</a>

</object> Background sounds are also not working: <BGSOUND SRC="C:\Windows\Media\StarTrek\BridgeSequence.wav">

I am trying to get a sound to play when an event happens on my page. I added a link so that I could click on it to make it play, but when I do i am getting this error message: Firefox doesn’t know how to open this address, because one of the following protocols (c) isn’t associated with any program or is not allowed in this context. I have done some searching but can't find a solution. I know that you disabled plugins, but is there not a way to play sounds in Firefox anymore? Here is the object I setup: <object type="audio/x-wav" data="C:\Windows\Media\StarTrek\DistressCall.wav"> <param name="src" value="C:\Windows\Media\StarTrek\DistressCall.wav"> <param name="autoplay" value="true"> <param name="autoStart" value="1"> &nbsp;<a href="C:\Windows\Media\StarTrek\DistressCall.wav">test.wav</a> </object> Background sounds are also not working: <BGSOUND SRC="C:\Windows\Media\StarTrek\BridgeSequence.wav">

Alle Antworten (2)

more options

1. You should use <audio> element.

2. Error is right, C is not a protocol. You can't use full path as a source without providing proper file protocol syntax. Try to use only filename - in the samo folder as html file.

more options

The proper URI would be:

<audio src=file:///C:/Windows/Media/StarTrek/DistressCall.wav></audio>

You can always open the file in a Firefox tab to see the correct URL in the location/address bar. Note that Firefox may throw a security error in case a sandbox (e.g. multi-process) is active.

See also:

Geändert am von cor-el