Skip to content

Commit

Permalink
feat(MeetingsAdapter): add MediaPermissions enum
Browse files Browse the repository at this point in the history
  • Loading branch information
karinasigartau0798 authored and lalli-flores committed Jun 10, 2021
1 parent 0ee4a71 commit 6ad75a9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/MeetingsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,22 @@ export const MeetingState = {
LEFT: 'LEFT', // the user has left the meeting
};

/**
* Enum for media permissions states.
* A falsy value for the media permission means that it is unknown (eg: the meeting was just created).
*
* @readonly
* @enum {string}
*/
export const MediaPermissions = {
ASKING: 'ASKING', // set while requesting the user for permission to access media device
ALLOWED: 'ALLOWED', // set when the user has allowed permission to access media device
DENIED: 'DENIED', // set when the user has denied access to media device
DISMISSED: 'DISMISSED', // set when the user has dismissed the media device access prompt without allowing or denying access
ERROR: 'ERROR', // set when there is an error while requesting access to media device
IGNORED: 'IGNORED', // set when the user has chosen to not interact with the device access
};

/**
* 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

0 comments on commit 6ad75a9

Please sign in to comment.