diff options
Diffstat (limited to 'src')
-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(); |