Room
On this page
public class Room : IDisposable
Main Room
Properties
Name | Type | Description |
---|---|---|
Config | RoomConfig | Room configuration |
IsJoined | Boolean | true on successful Odin or false |
Self | Peer | Client Peer |
RemotePeers | PeerCollection | Conatiner of room peers |
PlaybackMedias | IEnumerable<MediaCollection> | Get all medias of room peers |
MicrophoneMedia | MicrophoneStream | Current room microphone data route |
Static Properties
Name | Type | Description |
---|---|---|
ConnectionState | KeyValuePair<OdinRoomConnectionStateChangeReason> |
Public Methods
Name | Description |
---|---|
SetApmConfig | Set rooms new Apm config |
Join | Join the room via Odin gateway |
CreateMicrophoneMedia | Try to add a MicrophoneMedia |
UpdateUserData | Updates the user data for our own peer. The server will populate this data to all other visible peers in the same room. |
SendMessage | Sends arbitrary data to a peer that the Media belongs to. |
BroadcastMessage | Sends arbitrary data to a all remote peers in this room. |
SetMicrophoneMute | Will set the room MicrophoneMedia to mute |
SetPositionScale | Configures the allowed 'view' distance for proximity calculation of peers in the room |
UpdatePosition | Updates the two-dimensional position of our own peer in the room |
Leave | Leave a room and free all remote peers and associated medias |
Dispose |