Events

View as Markdown

Events

room.ended

  • room.ended(roomSession)

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

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

Parameters

NameType
roomSessionRoomSession

room.started

  • room.started(roomSession)

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

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

Parameters

NameType
roomSessionRoomSession