jquery - Chrome doesn't play my embed file, the request to audio file gets "canceled" -


i have page uses jquery play sound whenever users make error.

here part of html:

<embed id="beepcache" src="sound/beep.wav" autostart="false" type ="audio/x-wav" width="0" height="0" hidden="hidden" /><!-- caching! --> 

i use locally cache file, plays instantly. jquery function plays sound. adds , removes embed element in dom.

function playsound() {             $('body').append('<embed id="beep" width="0" height="0"  type ="audio/x-wav" src="sound/beep.wav" autostart="true" hidden="hidden">');             //wait 1 sec remove embed element             settimeout(function() {                 $('#beep').remove();             }, 1000);         } 

so code works in ie, ff , opera, used work in chrome. when worked noticed request beep.wav cache hits.

however status (canceled). thought chrome smart , notices embed element removed, cancels request resource, not case, because embed element use caching , never removed gets status (canceled) - happens on page load.

any ideas appreciated.

i figured out. sorry. vlc plug-in installed @ home. since using same google account on home , work pc, got installed on work pc too.

so disabled , works charm again :p


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -