Skip to content

Plugin Meetings Events

adamrangs edited this page Aug 12, 2022 · 1 revision
// Public events developers are meant to see and use. 
export const EVENT_TRIGGERS = {
  // meetings object
  MEETINGS_READY: 'plugin ready', // plugin ready
  MEETING_ADDED: 'meeting added', // meeting added (started (added, created, initialized, ready?)
  MEETING_REMOVED: 'meeting removed', // meeting removed (deleted?)
  // revisit "meetings" with an "S"

  // meeting object
  MEDIA_READY: 'my media streams started', // TODO: Refactor keys based on event strings
  MEDIA_STOPPED: 'my media streams ended',
  MEDIA_UPDATE: 'my media streams updated',
  
  // SELF
  MEDIA_AUDIO_CHANGED: 'my audio updated', // AUDIO_... // "forced" property or "self" // who muted me? include the member
  MEDIA_VIDEO_CHANGED: 'my video updated', // VIDEO_...
  MEETING_STARTED_SHARING_LOCAL: 'my sharing started',
  MEETING_STOPPED_SHARING_LOCAL: 'my sharing ended',
  MEETING_RINGING: 'my ringing started',
  MEETING_RINGING_STOP: 'my ringing ended',


  MEETING_SELF_LOBBY_WAITING: 'my lobby status', // {'entered': true}, formerly 'entered lobby', 
  MEETING_SELF_GUEST_ADMITTED: 'my admission status', // {'admitted': true}, formerly 'admitted' 

  MEETING_RECONNECTION_STARTING: 'my reconnection started',
  MEETING_RECONNECTION_SUCCESS: 'my reconnection succeeded',
  MEETING_RECONNECTION_FAILURE: 'my reconnection failed',

  // members object
  MEMBERS_UPDATE: 'updated',
  MEMBERS_CONTENT_UPDATE: 'shares updated',
  MEMBERS_HOST_UPDATE: 'host updated',
  MEMBERS_SELF_UPDATE: 'user updated',
};
Clone this wiki locally