mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 13:57:53 +00:00
* feat(multi-stream-support) Add screenshare as a second video track to the call. This feature is behind a sendMultipleVideoStreams config.js flag. sourceNameSignaling flag also needs to enabled. Sending multiple tracks is currently supported only on endpoints running in unified plan mode. However, clients with source-name signaling enabled and running in plan-b can still receive multiple streams . * squash: check if there is an existing track before adding camera/desktop * squash: enable multi-stream only on unified plan endpoints.
62 lines
1.0 KiB
JavaScript
62 lines
1.0 KiB
JavaScript
// @flow
|
|
|
|
/**
|
|
* The set of facing modes for camera.
|
|
*
|
|
* @enum {string}
|
|
*/
|
|
export const CAMERA_FACING_MODE = {
|
|
ENVIRONMENT: 'environment',
|
|
USER: 'user'
|
|
};
|
|
|
|
export type MediaType = 'audio' | 'video' | 'presenter' | 'screenshare';
|
|
|
|
/**
|
|
* The set of media types.
|
|
*
|
|
* @enum {string}
|
|
*/
|
|
export const MEDIA_TYPE = {
|
|
AUDIO: 'audio',
|
|
PRESENTER: 'presenter',
|
|
SCREENSHARE: 'screenshare',
|
|
VIDEO: 'video'
|
|
};
|
|
|
|
|
|
/* eslint-disable no-bitwise */
|
|
|
|
/**
|
|
* 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
|
|
};
|
|
|
|
/**
|
|
* 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,
|
|
USER: 1 << 2
|
|
};
|
|
|
|
/* eslint-enable no-bitwise */
|
|
|
|
/**
|
|
* The types of video tracks.
|
|
*
|
|
* @enum {string}
|
|
*/
|
|
export const VIDEO_TYPE = {
|
|
CAMERA: 'camera',
|
|
DESKTOP: 'desktop'
|
|
};
|