Explorar o código

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js into master

David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
546cc5864a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/Audio/audioEngine.ts

+ 2 - 1
src/Audio/audioEngine.ts

@@ -103,7 +103,8 @@ export class AudioEngine implements IAudioEngine {
         this._hostElement = hostElement;
         this._hostElement = hostElement;
 
 
         try {
         try {
-            if (audioElem && !!audioElem.canPlayType && audioElem.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/, '')) {
+            if (audioElem && !!audioElem.canPlayType && (audioElem.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/, '') ||
+                audioElem.canPlayType('audio/mp3').replace(/^no$/, ''))) {
                 this.isMP3supported = true;
                 this.isMP3supported = true;
             }
             }
         }
         }