Events

We provide a robust event system that allows you to listen for specific events and execute callback functions based on them. Below is a list of events available within the SDK:

Event NameDescription
lobby:joinedtriggers when lobby is successfully joined after calling @joinLobby() method
lobby:failedtriggers when @joinLobby() method fails,reason for failing can be found in @error
lobby:metadatatriggers when @joinLobby() method succeeds and presents you with the metadata of peers inside the room
lobby:cam-ontriggers when Camera has successfully loaded after calling @fetchVideoStream()
lobby:cam-offtriggers when Video Stream has successfully stopped after calling @stopVideoStream()
lobby:mic-ontriggers when Mic has successfully loaded after calling @fetchAudioStream()
lobby:mic-offtriggers when Audio Stream has successfully stopped after calling @stopAudioStream()
room:joinedtriggers when room is successfully joined after calling the @joinRoom() method
room:failedtriggers when @joinRoom() method fails, reason for failing can be found in @error
room:new-peertriggers when a new participant joins the room, the @peerIds[] array gets updated when this happens
room:peer-lefttriggers when a participant leaves the room, the @peerIds[] array gets updated when this happens
room:recording-startedtriggers when a recording has started in the room, @inProgress will turn to true
room:recording-stoppedtriggers when a recording has stopped in the room, @inProgress will turn to false
room:livestream-startedtriggers when a livestream has started in the room, @inProgress will turn to true
room:livestream-stoppedtriggers when the livestream has started in the room, @inProgress will turn to false

App states

The following are the three app states that your app can be in at any given point:

  1. Idle: The client has not been initialized yet, so no methods can be invoked at this stage.
  2. initialized: The client has been initialized and is ready for you to invoke the joinLobby() method.
  3. Lobby: The user has joined the lobby and is ready to join a room or perform other lobby-related actions.
  4. Room: The user has entered the meeting room and is ready has access to meeting-room controls.
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.