Merge pull request #833 from VisualSJ/v1.1_3435

IOS 加载音频必须等到超时的问题
This commit is contained in:
Wang Nan
2016-06-28 15:33:07 +08:00
committed by GitHub
+7
View File
@@ -764,6 +764,13 @@ else {
__audioSupport = { ONLY_ONE: false, WEB_AUDIO: supportWebAudio, DELAY_CREATE_CTX: false };
if (sys.os === sys.OS_IOS) {
// IOS no event that used to parse completed callback
// this time is not complete, can not play
//
__audioSupport.USE_LOADER_EVENT = 'loadedmetadata';
}
if (sys.browserType === sys.BROWSER_TYPE_FIREFOX) {
__audioSupport.DELAY_CREATE_CTX = true;
__audioSupport.USE_LOADER_EVENT = 'canplay';