Access the Video API Consumer. You can instantiate a Video.Client to subscribe to Video events. Please check Video.VideoClientApiEvents for the full list of events that a Video.Client can subscribe to.


The following example logs whenever a room session is started or a user joins it:

const video = new Video.Client({ project, token })

// Listen for events:
video.on('room.started', async (roomSession) => {
  console.log('Room has started:',

  roomSession.on('member.joined', async (member) => {
    console.log('Member joined:',