OnCreatedMediaObject

Whenever a “user (in ODIN language it’s a peer) has joined a room and starts sending audio data (i.e. has activated the microphone) this event is triggered after OnMediaAdded .

You can respond to this event and call the AddPlaybackComponent function of the OdinHandler.Instance like shown in the example below.

Your callback function must have this structure and contains information about the room, peer and the media object.

public class UnityCreatedMediaObject : UnityEvent<string, ulong, int>;

Whenever this callback is triggered, imagine a new player comes in the arena and the game master needs to give him a Walky Talky so that he can listen and talk to the other players.