Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinHandler.JoinRoom

public async void JoinRoom(string roomName, IUserData userData = null, Action<Room> setup = null)
public async void JoinRoom(string roomAlias, string token, UserData userData = null, Action<Room> setup = null)

Join or create a room by name and attach a Media

Info

Configure Room-Apm i.e VadEnable, … or Odin-Event-Listeners i.e PeerJoinedEvent, … with Config

Parameters

NameTypeDescription
roomNameStringRoom name
userDataIUserDataOverride OdinClient default UserData
setupAction<Room>Override default Room setup
roomAliasStringRoom name
tokenString
userDataUserDataOverride OdinClient default UserData

Variants

JoinRoom(roomName, userData, setup)

public async void JoinRoom(string roomName, IUserData userData = null, Action<Room> setup = null)

Join or create a room by name and attach a Media

Warning

Configure Room-Apm i.e VadEnable, … or Odin-Event-Listeners i.e PeerJoinedEvent, … with Config

Parameters

NameTypeDescription
roomNameStringRoom name
userDataIUserDataOverride OdinClient default UserData
setupAction<Room>Override default Room setup

JoinRoom(roomAlias, token, userData, setup)

public async void JoinRoom(string roomAlias, string token, UserData userData = null, Action<Room> setup = null)

Join or create a room by name and attach a Media

Warning

Configure Room-Apm i.e VadEnable, … or Odin-Event-Listeners i.e PeerJoinedEvent, … with Config

Parameters

NameTypeDescription
roomAliasStringRoom name
tokenString
userDataUserDataOverride OdinClient default UserData
setupAction<Room>Override default Room setup