Skip to content

Commit

Permalink
feat(MeetingsAdapter): add status for meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
maloun96 authored and lalli-flores committed Apr 9, 2021
1 parent 55d12fa commit 5f8345f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/MeetingsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import WebexAdapter from './WebexAdapter';
* @property {MediaStream} remoteVideo The remote video stream
* @property {MediaStream} remoteAudio The remote audio stream
* @property {MediaStream} remoteShare The remote media share stream
* @property {MeetingState} state The status of the meeting
*/

/**
Expand Down Expand Up @@ -76,6 +77,19 @@ export const MeetingControlState = {
DISABLED: 'disabled',
};

/**
* Enum for meeting states.
*
* @readonly
* @enum {string}
*/
export const MeetingState = {
ACTIVE: 'ACTIVE',
ENDED: 'ENDED',
JOINED: 'JOINED', // Inactive
NOT_STARTED: 'NOT_STARTED',
};

/**
* This is a base class that defines the interface that maps meetings data.
* Developers that want to extend `MeetingsAdapter` must implement all of its methods,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export {default as WebexAdapter} from './WebexAdapter';
export {default as ActivitiesAdapter} from './ActivitiesAdapter';
export {default as MeetingsAdapter, MeetingControlState} from './MeetingsAdapter';
export {default as MeetingsAdapter, MeetingControlState, MeetingState} from './MeetingsAdapter';
export {default as MembershipsAdapter, DestinationType} from './MembershipsAdapter';
export {default as OrganizationsAdapter} from './OrganizationsAdapter';
export {default as PeopleAdapter, PersonStatus} from './PeopleAdapter';
Expand Down

0 comments on commit 5f8345f

Please sign in to comment.