X
Tocca qui per la versione per piattaforma mobile del sito.

Forum di supporto

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

firefox won't play wav but other browsers do

Inserita

Firefox won't play the wav files indicated in this page, but other browsers do. Please see the comments in the file for further info.

   <html>
    <head>
    </head>
    <body>

    <audio id="buttonAudio" src="buttonClick.wav"></audio>

    <button onclick="newGame00()">New Game 00</button>
    <button onclick="newGame01()">New Game 01</button>
    <button onclick="newGame02()">New Game 02</button>
    <button onclick="newGame03()">New Game 03</button>
    <button onclick="newGame04()">New Game 04</button>
    <button onclick="newGame05()">New Game 05</button>
    <button onclick="newGame06()">New Game 06</button>

    <script>

    // W3 Schools (https://www.w3schools.com/html/html5_audio.asp) says Firefox has
    //   supported HTML5 audio since version 3.5, and Internet Explorer has supported
    //   it since version 9.0.

    // W3 Schools also (https://www.w3schools.com/jsref/met_audio_play.asp) says
    //   Firefox supports the HTML5 DOM Audio object, and Internet Explorer has done
    //   so since version 9.0. In fact, this W3 Schools page specifically recommends
    //   the method I've implemented via the "New Game 06" button.

    // Nevertheless:

    // I've tried all six of these methods for getting a button click in javascript.
    //   None of them work in version 61.0.1 (64-bit) of Mozilla Firefox.
    //   None of them work in version 11.0.9600.19080 of Internet Explorer.
    //   All six of them work in version 41.16299.371.0 of Edge.
    //   All six of them work in version 67.0.3396.99 (64-bit) of Google Chrome.
    //   All six of them work in version 54.0.2952.64 of Opera.
    //   All six of them work in version 19.0.2.0 (32-bit) of Slimjet.

    var buttonClick = new Audio("buttonClick.wav");

    var x = document.getElementById('buttonAudio');

    function newGame00() {
        buttonClick.play();
    }

    function newGame01() {
        buttonAudio.play();
    }

    function newGame02() {
        doit02();
    }

    function newGame03() {
        doit03();
    }

    function newGame04() {
        document.getElementById('buttonAudio').play();
    }

    function newGame05() {
        doit05();
    }

    function newGame06() {
        x.play();
    }

    async function doit02() {
        buttonClick.play();
    }

    async function doit03() {
        buttonAudio.play();
    }

    async function doit05() {
        document.getElementById('buttonAudio').play();
    }

    // buttonClick.wav is a simple click sound generated by Audacity 2.1.0. I'd be
    //   suspicious of it, if it weren't for the fact that it works fine in all those
    //   other browsers. Since yesterday, I've also tried it with buttonClick.mp3 and
    //   buttonClick.ogg, both with the same results.

    // If you wish, you can directly try my code at bds-soft.com/NewSite/clickTest.html .
    //   Maybe there's something wrong with my code? Please ignore the rest of the
    //   NewSite - it's ALL still under construction.

    // At one of our local library's computers, it worked fine on version
    //   41.16299.547.0 of Edge and version 67.0.3396.99 of Chrome; but not on
    //   version 61.0.1 of Firefox nor on version 11.547.16299.0 of Internet Explorer.

    // I found a Firefox suggestion at:
    //   https://support.mozilla.org/en-US/kb/i-cant-play-audio-remote-desktop-connection
    //   but it did not solve the problem.

    </script>
    </body>
Firefox won't play the wav files indicated in this page, but other browsers do. Please see the comments in the file for further info. <pre><nowiki> <html> <head> </head> <body> <audio id="buttonAudio" src="buttonClick.wav"></audio> <button onclick="newGame00()">New Game 00</button> <button onclick="newGame01()">New Game 01</button> <button onclick="newGame02()">New Game 02</button> <button onclick="newGame03()">New Game 03</button> <button onclick="newGame04()">New Game 04</button> <button onclick="newGame05()">New Game 05</button> <button onclick="newGame06()">New Game 06</button> <script> // W3 Schools (https://www.w3schools.com/html/html5_audio.asp) says Firefox has // supported HTML5 audio since version 3.5, and Internet Explorer has supported // it since version 9.0. // W3 Schools also (https://www.w3schools.com/jsref/met_audio_play.asp) says // Firefox supports the HTML5 DOM Audio object, and Internet Explorer has done // so since version 9.0. In fact, this W3 Schools page specifically recommends // the method I've implemented via the "New Game 06" button. // Nevertheless: // I've tried all six of these methods for getting a button click in javascript. // None of them work in version 61.0.1 (64-bit) of Mozilla Firefox. // None of them work in version 11.0.9600.19080 of Internet Explorer. // All six of them work in version 41.16299.371.0 of Edge. // All six of them work in version 67.0.3396.99 (64-bit) of Google Chrome. // All six of them work in version 54.0.2952.64 of Opera. // All six of them work in version 19.0.2.0 (32-bit) of Slimjet. var buttonClick = new Audio("buttonClick.wav"); var x = document.getElementById('buttonAudio'); function newGame00() { buttonClick.play(); } function newGame01() { buttonAudio.play(); } function newGame02() { doit02(); } function newGame03() { doit03(); } function newGame04() { document.getElementById('buttonAudio').play(); } function newGame05() { doit05(); } function newGame06() { x.play(); } async function doit02() { buttonClick.play(); } async function doit03() { buttonAudio.play(); } async function doit05() { document.getElementById('buttonAudio').play(); } // buttonClick.wav is a simple click sound generated by Audacity 2.1.0. I'd be // suspicious of it, if it weren't for the fact that it works fine in all those // other browsers. Since yesterday, I've also tried it with buttonClick.mp3 and // buttonClick.ogg, both with the same results. // If you wish, you can directly try my code at bds-soft.com/NewSite/clickTest.html . // Maybe there's something wrong with my code? Please ignore the rest of the // NewSite - it's ALL still under construction. // At one of our local library's computers, it worked fine on version // 41.16299.547.0 of Edge and version 67.0.3396.99 of Chrome; but not on // version 61.0.1 of Firefox nor on version 11.547.16299.0 of Internet Explorer. // I found a Firefox suggestion at: // https://support.mozilla.org/en-US/kb/i-cant-play-audio-remote-desktop-connection // but it did not solve the problem. </script> </body></nowiki></pre>

Modificato da cor-el il

Soluzione scelta

There are lots of options (number of channels, sample rate) for creating WAV files and Firefox doesn't support them all, only a small set of commonly used formats is supported. So you can try to use two channels and 48k sampling rate.

Leggere questa risposta nel contesto 1

Dettagli aggiuntivi sul sistema

Plugin installati

  • Shockwave Flash 30.0 r0

Applicazione

  • Firefox 61.0.1
  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
  • URL per il supporto: https://support.mozilla.org/1/firefox/61.0.1/WINNT/en-US/

Estensioni

  • Adblock Plus 3.2 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d})
  • DownThemAll! 3.0.8 ({DDC359D1-844A-42a7-9AA1-88A850A938A8}) (Inattiva)
  • Firesizer 1.7.1-signed.1-signed ({04426594-bce6-4705-b811-bcdba2fd9c7b}) (Inattiva)
  • Kaspersky Password Manager 2.9 (kpm@kaspersky.com) (Inattiva)
  • Kaspersky Protection 4.6.3.33d-20180215093804 (light_plugin_8B78A3E0B2874D708E89F783B0DB2AFB@kaspersky.com) (Inattiva)

Javascript

  • incrementalGCEnabled: True

Grafica

  • adapterDescription: ATI Radeon HD 4200
  • adapterDescription2:
  • adapterDeviceID: 0x9710
  • adapterDeviceID2:
  • adapterDrivers: aticfx64 aticfx64 aticfx32 aticfx32 atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64
  • adapterDrivers2:
  • adapterRAM: 256
  • adapterRAM2:
  • adapterSubsysID: 2ab1103c
  • adapterSubsysID2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • contentUsesTiling: False
  • crashGuards: []
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.22164
  • driverDate: 6-29-2011
  • driverDate2:
  • driverVersion: 8.862.3.0
  • driverVersion2:
  • failures: [u'CP+[GFX1-]: [D2D1.1] 4CreateBitmap failure Size(9731,1) Code: 0x80070057 format 1', u'CP+[GFX1-]: [D2D1.1] 4CreateBitmap failure Size(9731,1) Code: 0x80070057 format 1', u'CP+[GFX1-]: [D2D1.1] 4CreateBitmap failure Size(9731,1) Code: 0x80070057 format 1']
  • featureLog: {u'fallbacks': [{u'message': u'Unsupported by driver', u'name': u'NO_CONSTANT_BUFFER_OFFSETTING'}], u'features': [{u'status': u'available', u'description': u'Compositing', u'name': u'HW_COMPOSITING', u'log': [{u'status': u'available', u'type': u'default'}]}, {u'status': u'available', u'description': u'Direct3D11 Compositing', u'name': u'D3D11_COMPOSITING', u'log': [{u'status': u'available', u'type': u'default'}]}, {u'status': u'available', u'description': u'Direct2D', u'name': u'DIRECT2D', u'log': [{u'status': u'available', u'type': u'default'}]}, {u'status': u'available', u'description': u'Direct3D11 hardware ANGLE', u'name': u'D3D11_HW_ANGLE', u'log': [{u'status': u'available', u'type': u'default'}]}, {u'status': u'available', u'description': u'GPU Process', u'name': u'GPU_PROCESS', u'log': [{u'status': u'available', u'type': u'default'}]}, {u'status': u'unavailable', u'description': u'WebRender', u'name': u'WEBRENDER', u'log': [{u'status': u'opt-in', u'message': u'WebRender is an opt-in feature', u'type': u'default'}, {u'status': u'unavailable', u'message': u"Build doesn't include WebRender", u'type': u'runtime'}]}, {u'status': u'available', u'description': u'Off Main Thread Painting', u'name': u'OMTP', u'log': [{u'status': u'available', u'type': u'default'}]}, {u'status': u'available', u'description': u'Advanced Layers', u'name': u'ADVANCED_LAYERS', u'log': [{u'status': u'available', u'type': u'default'}, {u'status': u'available', u'message': u'Enabled for Windows 7 via user-preference', u'type': u'user'}]}]}
  • indices: [0, 1, 2]
  • info: {u'AzureContentBackend (UI Process)': u'skia', u'AzureCanvasBackend (UI Process)': u'skia', u'ApzWheelInput': 1, u'ApzDragInput': 1, u'ApzKeyboardInput': 1, u'AzureFallbackCanvasBackend (UI Process)': u'cairo', u'ApzAutoscrollInput': 1, u'AzureCanvasAccelerated': 0, u'AzureCanvasBackend': u'direct2d 1.1', u'AzureContentBackend': u'direct2d 1.1'}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • offMainThreadPaintEnabled: True
  • offMainThreadPaintWorkerCount: 3
  • usesTiling: False
  • webgl1DriverExtensions: GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object
  • webgl1Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
  • webgl1Renderer: Google Inc. -- ANGLE (Software Adapter Direct3D11 vs_5_0 ps_5_0)
  • webgl1Version: OpenGL ES 2.0 (ANGLE 2.1.0.fcbca0e873c3)
  • webgl1WSIInfo: EGL_VENDOR: Google Inc. (adapter LUID: 0000000000000000) EGL_VERSION: 1.4 (ANGLE 2.1.0.fcbca0e873c3) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses
  • webgl2DriverExtensions: GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_multiview GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object
  • webgl2Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
  • webgl2Renderer: Google Inc. -- ANGLE (Software Adapter Direct3D11 vs_5_0 ps_5_0)
  • webgl2Version: OpenGL ES 3.0 (ANGLE 2.1.0.fcbca0e873c3)
  • webgl2WSIInfo: EGL_VENDOR: Google Inc. (adapter LUID: 0000000000000000) EGL_VERSION: 1.4 (ANGLE 2.1.0.fcbca0e873c3) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11
  • windowUsingAdvancedLayers: True

Preferenze modificate

Varie

  • User JS: No
  • Accessibilità: No
Wesley Branton
  • Top 10 Contributor
582 soluzioni 4953 risposte

The only browser that does not support WAV is Internet Explorer. All other browsers (including Firefox) do.

The problem is that the syntax above is not correct. The <audio> needs to enclose a tag. The media source is not set with a src attribute on the <audio> tag.

This is an example of how it should be structured: <audio controls>

    <source src="file.wav" type="audio/wav">

</audio>

Hope this helps.

The only browser that does not support WAV is Internet Explorer. All other browsers (including Firefox) do. The problem is that the syntax above is not correct. The <code><audio></code> needs to enclose a <code><source></code> tag. The media source is not set with a <code>src</code> attribute on the <code><audio></code> tag. This is an example of how it should be structured: <code> <audio controls> <<!-- -->source src="file.wav" type="audio/wav"> </audio> </code> Hope this helps.

Utente che ha posto la domanda

Thank you, Wesley -

Unfortunately, that didn't seem to help. Not needing the controls (this is just a button click) I used:

   <audio id="buttonAudio">
       <source src="buttonClick.wav" type="audio/wav">
   </audio>

As before, it worked fine in Edge, Chrome, Opera, and Slimjet; but not in Firefox. Not here at home, and not at the library.

The line was there - it just wouldn't display in this window. Okay, I used the lt and gt mechanism - now it displays above ?!? (grrrr).

Thank you, Wesley - Unfortunately, that didn't seem to help. Not needing the controls (this is just a button click) I used: <audio id="buttonAudio"> &lt;source src="buttonClick.wav" type="audio/wav"&gt; </audio> As before, it worked fine in Edge, Chrome, Opera, and Slimjet; but not in Firefox. Not here at home, and not at the library. The line was there - it just wouldn't display in this window. Okay, I used the lt and gt mechanism - now it displays above ?!? (grrrr).

Modificato da mdavidjohnson il

Wesley Branton
  • Top 10 Contributor
582 soluzioni 4953 risposte

Risposta utile

Yeah the controls aren't required, but you are still missing the tag within the <audio>.

Here is a fully working piece of code that I have confirmed works without any issues:

<audio id="test"> <source src="http://www.kozco.com/tech/LRMonoPhase4.wav" type="audio/wav"> </audio> <button onclick="document.getElementById('test').play()">Play Audio</button>

I've verified that this is working properly.

Yeah the controls aren't required, but you are still missing the <code><source></code> tag within the <code><audio></code>. Here is a fully working piece of code that I have confirmed works without any issues: <code><audio id="test"> <<!-- -->source src="http://www.kozco.com/tech/LRMonoPhase4.wav" type="audio/wav"> </audio> <button onclick="document.getElementById('test').play()">Play Audio</button></code> I've verified that this is working properly.

Utente che ha posto la domanda

Yes indeed - that does work here for me too.

(Please note my post above - the source tag was there; it just wasn't displaying in that window until I replaced the carets with the lt and gt equivalents. - but it still doesn't play).

I would thus think there's something wrong with my buttonClick.wav file, except that it works fine in the other browsers.

I'll have to try the code with some other wav files as well.

Yes indeed - that does work here for me too. (Please note my post above - the source tag was there; it just wasn't displaying in that window until I replaced the carets with the lt and gt equivalents. - but it still doesn't play). I would thus think there's something wrong with my buttonClick.wav file, except that it works fine in the other browsers. I'll have to try the code with some other wav files as well.
cor-el
  • Top 10 Contributor
  • Moderator
17424 soluzioni 157436 risposte

Firefox can't play this specific WAV file with the HTML5 media player. If I open the file in a Firefox tab then I get the open with dialog. This means that this file format isn't supported because otherwise you would get the media player.

Firefox can't play this specific WAV file with the HTML5 media player. If I open the file in a Firefox tab then I get the open with dialog. This means that this file format isn't supported because otherwise you would get the media player.

Utente che ha posto la domanda

Hi cor-el -

I'm not sure what you mean. If I try to open buttonClick.wav directly with Firefox, I do (as you say) get the "open with" dialog.

But, if I try to open Wesley's file (http://www.kozco.com/tech/LRMonoPhase4.wav) directly with Firefox, I also get the "open with" dialog. But his wav file clearly works when contained in the audio tag, while mine does not.

Could you please clarify what you meant a bit more?

And, why would button.wav work perfectly in Edge, Chrome, Opera, and Slimjet; but not in Firefox.

I substituted a different file, CHIMES.WAV, into my test page and it works fine in Firefox, so I feel justified in concluding that there is indeed some sort of a problem with the buttonClick.wav file.

Do you have any thoughts on why this might be so.

Meanwhile, I'll go see if the folks at Audacity have any info on this.

Hi cor-el - I'm not sure what you mean. If I try to open buttonClick.wav directly with Firefox, I do (as you say) get the "open with" dialog. But, if I try to open Wesley's file (http://www.kozco.com/tech/LRMonoPhase4.wav) directly with Firefox, I also get the "open with" dialog. But his wav file clearly works when contained in the audio tag, while mine does not. Could you please clarify what you meant a bit more? And, why would button.wav work perfectly in Edge, Chrome, Opera, and Slimjet; but not in Firefox. I substituted a different file, CHIMES.WAV, into my test page and it works fine in Firefox, so I feel justified in concluding that there is indeed some sort of a problem with the buttonClick.wav file. Do you have any thoughts on why this might be so. Meanwhile, I'll go see if the folks at Audacity have any info on this.

Modificato da mdavidjohnson il

cor-el
  • Top 10 Contributor
  • Moderator
17424 soluzioni 157436 risposte

Soluzione scelta

There are lots of options (number of channels, sample rate) for creating WAV files and Firefox doesn't support them all, only a small set of commonly used formats is supported. So you can try to use two channels and 48k sampling rate.

There are lots of options (number of channels, sample rate) for creating WAV files and Firefox doesn't support them all, only a small set of commonly used formats is supported. So you can try to use two channels and 48k sampling rate.

Utente che ha posto la domanda

Thank you cor-el.

Audacity had saved the file at 44100. I re-did it at 48000 and now it works.

Of course, it still doesn't work in IE. (sigh).

Thank you cor-el. Audacity had saved the file at 44100. I re-did it at 48000 and now it works. Of course, it still doesn't work in IE. (sigh).

Modificato da mdavidjohnson il