Video.VideoClientApiEvents

List of events for Video.Client.

Methods

room.ended

room.ended(room): void

Emitted when a room session ends. Your event handler receives an object which is an instance of Video.RoomSession.

const video = new Video.Client(...)
video.on('room.ended', async (roomSession) => {
    console.log(roomSession.name)
})

Parameters

NameType
roomRoomSession

Returns

void


room.started

room.started(room): void

Emitted when a room session is started. Your event handler receives an object which is an instance of Video.RoomSession. Example:

const video = new Video.Client(...)
video.on('room.started', async (roomSession) => {
    console.log(roomSession.name)
})

Parameters

NameType
roomRoomSession

Returns

void