Developer Documentation

OnMediaRemoved

Whenever a “user (in ODIN language it’s a peer) stops sending audio data (i.e. has deactivated the microphone) this event is triggered.

Your callback function must have this structure. MediaRemovedEventArgs contains information about the peer and the media removed from the room:

public void OnMediaRemoved(object sender, MediaRemovedEventArgs eventArgs);

You need to respond to this event and you need to remove the PlaybackComponent that you have attached to a game object before in the OnMediaAdded callback. You also need to remove the AudioSource from the Game Object which has been created by ODIN automatically.