# Unity webgl production libary issue

**URL:** https://qa.fmod.com/t/unity-webgl-production-libary-issue/17404
**Category:** FMOD Engine
**Tags:** unity
**Created:** [July 4, 2021, 9:32pm UTC](https://qa.fmod.com/t/unity-webgl-production-libary-issue/17404 "2021-07-04T21:32:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![powreapp2002](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@powreapp2002](https://qa.fmod.com/u/powreapp2002)
#### Post date: [July 4, 2021, 9:32pm UTC](https://qa.fmod.com/t/unity-webgl-production-libary-issue/17404/1 "2021-07-04T21:32:07Z")

</div>

Looks like FMOD midi playback doesn’t work on Unity Webgl.  
It return FMOD.RESULT.ERR\_FORMAT when create sound.  
The issue only exists on production build. if I build and run the development build, everything is working well. Could you check if midi codec has been removed on FMOD production build for unity webgl?  
thanks.

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [July 5, 2021, 5:46am UTC](https://qa.fmod.com/t/unity-webgl-production-libary-issue/17404/2 "2021-07-05T05:46:22Z")

</div>

I can confirm that MIDI is excluded by the reduced version of the Core API, and I can further confirm that the release version of the Studio API uses the reduced version of the Core API. For a full list of what is removed from the reduced version, see the [getting started docs](https://fmod.com/resources/documentation-api?version=2.01&page=platforms-html5.html#reduced-feature-build).

I simple work around for Unity might be to delete libfmodstudiounityplugin.bc and duplicate libfmodstudiounitypluginL.bc, renaming it to libfmodstudiounityplugin.bc. This means the logging version of FMOD will be used in both Development builds and release builds but you will get all the functionality you need. You can use the settings to control the logging output to avoid that during release if you choose.

---

<div class="post-metadata">

### Author: ![powreapp2002](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@powreapp2002](https://qa.fmod.com/u/powreapp2002)
#### Post date: [July 5, 2021, 2:48pm UTC](https://qa.fmod.com/t/unity-webgl-production-libary-issue/17404/3 "2021-07-05T14:48:08Z")

</div>

Thanks. It works. 👍

---

<div class="post-metadata">

### Author: ![ReesClaire](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ReesClaire](https://qa.fmod.com/u/ReesClaire)
#### Post date: [July 6, 2021, 7:59am UTC](https://qa.fmod.com/t/unity-webgl-production-libary-issue/17404/4 "2021-07-06T07:59:46Z")

</div>

Hi, thanks for your reply, it helped me! 😌
