Cross-Platform / Cross-Engine is great. Inside the web client I can hear the UE client, but I cannot hear web clients inside the UE client. Why does it not work?
Each client integrates their own MediaStream into the chat room, as detailed in our Unreal Manual. Once added, these streams are automatically transmitted to the ODIN server and then multicast to every peer in the same room.
By linking the MediaStream of each remote peer to a SynthComponent (for example, on a player character), audio communication is enabled among all participants. This setup allows everyone to hear each other, irrespective of the client type they are using. For more details on this process, refer to the OnMediaAdded event.
Usually, every player character inside UE is spawned as soon as replicated by the network engine, i.e. Unreal networking. When an ODIN peer joins that cannot be replicated, you should either spawn a placeholder object “On Peer Joined” or you can attach the synth component of non-UE clients somewhere else “On Media Added”. For instance, you could attach it to your local player character to hear web clients with 2D audio like they are “on the phone”. Or you can put a virtual radio box inside the level to let web clients speak through that object. It is also possible to create a second ODIN room (e.g. “global chat”) and inside let all players from all client types communicate in 2D - in addition to the in-game (UE-only) spatial audio voice.
Remember to detach / destroy objects from non-UE ODIN peers when they leave the room.
See also
- Are there any dependencies to other plugins?
- I'm having Issues with Echo Cancellation, what can I do?
- Do you have sound occlusion built-in?
- Do you support Unreal Engine 5.x?
- Blueprint Only Projects: My packaged builds crash right after start-up
- Build-error: building for ... but attempting to link with file built for unknown-unsupported file format
- C++ only: JoinRoom does not trigger callbacks on Android / Meta Quest
- How to address build issues with Odin installed in both the Engine and Project
- I cannot find the Capture Audio nodes?
- LogUObjectGlobals: Warning: [AssetLog] ... Can't find file Error when running a packaged build
Still need help?
Please check out support options like AI chatbot, Discord community and premium support packages.
Get in touch