kshoji / Unity-MIDI-Plugin-supports

Documents and issues for Unity MIDI Plugin
9 stars 0 forks source link

WebGL : Unable to parse Build #28

Closed randomknobs closed 3 months ago

randomknobs commented 3 months ago

Does anyone know what is the procedure of building for web? Moved WebGL Templates folder to Assets in Unity project before building but still getting this error when trying to open from disk and from server as well: "Unable to parse Build/TEST CUBE.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check browser Console and Devtools Network tab to debug."

randomknobs commented 3 months ago

switched off compression in player settings and build was ok, but getting this error now from github server in browser

Screenshot 2024-06-21 at 19 02 16
randomknobs commented 3 months ago

in safari it gives me this:

TypeError: navigator.requestMIDIAccess is not a function. (In 'navigator.requestMIDIAccess({sysex:true,software:true})', 'navigator.requestMIDIAccess' is undefined) _midiPluginInitialize@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:315955 wasm-stub@[wasm code] <?>.wasm-function[40752]@[wasm code] <?>.wasm-function[59954]@[wasm code] wasm-stub@[native code] invoke_viii@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:418150 <?>.wasm-function[59954]@[wasm code] <?>.wasm-function[40545]@[wasm code] <?>.wasm-function[40844]@[wasm code] <?>.wasm-function[42591]@[wasm code] <?>.wasm-function[44193]@[wasm code] <?>.wasm-function[59950]@[wasm code] wasm-stub@[native code] invoke_iiii@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:417662 <?>.wasm-function[59950]@[wasm code] <?>.wasm-function[44177]@[wasm code] <?>.wasm-function[44231]@[wasm code] <?>.wasm-function[59195]@[wasm code] <?>.wasm-function[56771]@[wasm code] <?>.wasm-function[52996]@[wasm code] <?>.wasm-function[52413]@[wasm code] <?>.wasm-function[52415]@[wasm code] <?>.wasm-function[53633]@[wasm code] <?>.wasm-function[52412]@[wasm code] <?>.wasm-function[56417]@[wasm code] <?>.wasm-function[56414]@[wasm code] <?>.wasm-function[53583]@[wasm code] <?>.wasm-function[53582]@[wasm code] <?>.wasm-function[53594]@[wasm code] <?>.wasm-function[53595]@[wasm code] <?>.wasm-function[59927]@[wasm code] <?>.wasm-function[59933]@[wasm code] wasm-stub@[native code] @https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:358774 callMain@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:431384 doRun@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:431826 run@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:431995 runCaller@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:431033 removeRunDependency@https://randomknobs.github.io/sdasd/Build/CUBECUBE2.framework.js:10:17141 @https://

randomknobs commented 3 months ago

after small break modified index file in the end and all worked well:))