Developer Documentation


The Room class is the entry point of the low-level API of the ODIN SDK. It provides methods to join and leave a room, send and receive messages, and manage media streams. The Room class is also responsible for managing the connection state and the room configuration.

If don’t want to develop everything yourself, it is recommended to use OdinRoom instead which is a higher level API and is easier to use.

The basic flow is to use Room.Create to create a Room object, configure it with event handlers, and then join the room. Once joined, you can attach a media stream to the room and start sending and receiving media (i.e. microphone). You need to listen on the Room.OnMediaStarted event to receive media streams from other peers in the room and to create playback components for them.

See the example below for a basic usage of the Room class.