join
join
- join():
Promise<RoomSession>
Joins the room session.
Depending on the token you passed to the constructor, the room could be joined as a member or as an audience participant.
Parameters
params
Object containing the parameters of the method.
audio
Audio constraints to use when joining the room. Default: true.
video
Video constraints to use when joining the room. Default: true.
receiveAudio
Whether to receive audio. Default: true.
receiveVideo
Whether to receive video. Default: true.
sendAudio
Whether to send audio. This is ignored if the token belongs to an audience member, since they cannot send audio. Default: true.
sendVideo
Whether to send video. This is ignored if the token belongs to an audience member, since they cannot send video. Default: true.
Returns
Promise<RoomSession>