WebGL 5.6 Build doesn't work in IE11?

Hello,

My project doesn’t work in IE11 when building with Unity 5.6. I create a new empty project and build it directly in WebGL, but it has the same error : an exception is thrown in UnityLoader.js “InvalidStateError” in UnityLoader.Compression.decompress :

With Unity 5.3 building, there was no problem. Is there something specific to do in Unity 5.6 to be compatible with IE11 ? I didn’t find anything about it :frowning:

Thank you

edit : I’ve also tried to set “compression format” as disabled, and check “development build”, but now the error is in UnityLoader.Compression.brotli.hasUnityMarker : Math.log2 => log2 is not found (in french : L’objet ne gère pas la propriété ou la méthode “log2”)

edit 2 : I add “Math.log2 = Math.log2 || function(x){return Math.log(x)*Math.LOG2E;};” in the index.html page, now I have the same error as before : “InvalidStateError” :confused:

var n=URL.createObjectURL(new Blob([“this.require = “,r.require,”; this.decompress = “,r.decompress,”; this.onmessage = “,function(e){var t={id:e.data.id,decompressed:this.decompress(e.data.compressed)};postMessage(t,t.decompressed?[t.decompressed.buffer]:[ ])},”; postMessage({ ready: true });”],{type:“text/javascript”}));

change

var options = [“this.require = “,r.require,”; this.decompress = “,r.decompress,”; this.onmessage = “,function(e){var t={id:e.data.id,decompressed:this.decompress(e.data.compressed)};postMessage(t,t.decompressed?[t.decompressed.buffer]:[ ])},”; postMessage({ ready: true });”];
var blob;
try {
blob = new Blob(options,{type:“text/javascript”});
} catch (e) {
if (e.name == “InvalidStateError”) {
var b = new MSBlobBuilder();
options.forEach(function (v) { b.append(v); });
blob = b.getBlob(‘text/javascript’);
}
}

var n=URL.createObjectURL(blob);

Try the latest patch build which should have a fix for that afaik.

Thanks Jonatten
this was the answer for us! - now working on IE11

Awesome!!! Thank you so much!!! @Jonattan
Please still keep someway to use unity WebGL On IE11 even if IE11 doesn’t support Audio API. Please ! Please!! @Schubkraft

It works! But I get a warning window : Web Audio API is not supported in this browser. Could you have someway to forbidden this warning window? : )