2021-06-23 11:23:44 +00:00
|
|
|
// @flow
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
|
|
|
* The set of facing modes for camera.
|
|
|
|
*
|
|
|
|
* @enum {string}
|
|
|
|
*/
|
|
|
|
export const CAMERA_FACING_MODE = {
|
|
|
|
ENVIRONMENT: 'environment',
|
|
|
|
USER: 'user'
|
|
|
|
};
|
|
|
|
|
2022-03-15 17:24:49 +00:00
|
|
|
export type MediaType = 'audio' | 'video' | 'presenter' | 'screenshare';
|
2021-06-23 11:23:44 +00:00
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-08-02 15:00:51 +00:00
|
|
|
* The set of media types.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @enum {string}
|
|
|
|
*/
|
2022-01-07 10:54:42 +00:00
|
|
|
export const MEDIA_TYPE = {
|
2016-10-05 14:36:59 +00:00
|
|
|
AUDIO: 'audio',
|
2019-11-26 10:57:03 +00:00
|
|
|
PRESENTER: 'presenter',
|
2022-03-15 17:24:49 +00:00
|
|
|
SCREENSHARE: 'screenshare',
|
2016-10-05 14:36:59 +00:00
|
|
|
VIDEO: 'video'
|
|
|
|
};
|
|
|
|
|
2021-06-23 11:23:44 +00:00
|
|
|
|
2017-08-02 15:00:51 +00:00
|
|
|
/* eslint-disable no-bitwise */
|
|
|
|
|
2022-03-15 17:24:49 +00:00
|
|
|
/**
|
|
|
|
* The types of authorities which may mute/unmute the local screenshare.
|
|
|
|
*
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
export const SCREENSHARE_MUTISM_AUTHORITY = {
|
|
|
|
AUDIO_ONLY: 1 << 0,
|
|
|
|
USER: 1 << 2
|
|
|
|
};
|
|
|
|
|
2017-08-02 15:00:51 +00:00
|
|
|
/**
|
|
|
|
* The types of authorities which may mute/unmute the local video.
|
|
|
|
*
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
export const VIDEO_MUTISM_AUTHORITY = {
|
|
|
|
AUDIO_ONLY: 1 << 0,
|
|
|
|
BACKGROUND: 1 << 1,
|
2022-05-06 10:14:10 +00:00
|
|
|
USER: 1 << 2,
|
|
|
|
CAR_MODE: 1 << 3
|
2017-08-02 15:00:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* eslint-enable no-bitwise */
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-08-02 15:00:51 +00:00
|
|
|
* The types of video tracks.
|
|
|
|
*
|
2016-10-05 14:36:59 +00:00
|
|
|
* @enum {string}
|
|
|
|
*/
|
|
|
|
export const VIDEO_TYPE = {
|
|
|
|
CAMERA: 'camera',
|
|
|
|
DESKTOP: 'desktop'
|
|
|
|
};
|