diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-08-28 17:54:04 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-08-28 17:54:04 -0700 |
commit | 134099a4e630ccdbaaa6116a520d83794433aab5 (patch) | |
tree | 5d8794c2d6e70bf6ee4c4f8b0fdc607c05a66dfb | |
parent | f67ad608988b5a45b2f222f35a4806eb5f470003 (diff) |
further workaround for chrome bug 124926
-rw-r--r-- | src/library_browser.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 11c9bf2c..f3654f81 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -169,6 +169,10 @@ mergeInto(LibraryManager.library, { finish(audio); // we don't wait for confirmation this worked - but it's worth trying }; audio.src = url; + // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror + setTimeout(function() { + finish(audio); // try to use it even though it is not necessarily ready to play + }, 10000); } else { Module["preloadedAudios"][name] = new Audio(); // empty shim if (onerror) onerror(); |