Reputation: 13
Problem description
When building the demo scene in Unity for webgl, and then loading it, the scene loads, but when I click join, I get an error saying 'abort(To use dlopen, you need to use Emscripten's linking support...). Screenshot of the error.
Background information
I've done some googling. Here is someone having the same problem: https://dev.to/joelthomas362/create-an-agora-group-video-chat-using-unity-33ce (scroll down to the comments).
I think it has something to do with the way the agora DLL's are linked (see this thread for example: https://forum.unity.com/threads/to-use-dlopen-you-need-to-use-emscriptens-linking-support.521968/) where a unity Dev posts: Dynamic linking, i.e. @DllImport statements, are not supported by WebAssembly (in a form that would be useful to Unity WebGL plugin builds at least). When compiling plugins, the plugins should be authored to link statically to the project instead. However, I can't find how to statically link Agora IO.
Question
Is it possible to get Agora IO to work with Unity WebGL, and if so, how?
How to reproduce
Upvotes: 1
Views: 2984
Reputation: 654
Currently Agora Video SDK for Unity does NOT support WebGL. It is on the future development roadmap however. Please stay tuned for the updates.
Upvotes: 0