@jellyfish-dev/browser-media-utils
Version:
Facilitates the use of getUserMedia and enumerateDevices.
27 lines (26 loc) • 605 B
JavaScript
export const VIDEO_TRACK_CONSTRAINTS = {
width: {
max: 1280,
ideal: 1280,
min: 640,
},
height: {
max: 720,
ideal: 720,
min: 320,
},
frameRate: {
max: 30,
ideal: 24,
},
};
export const AUDIO_TRACK_CONSTRAINTS = {
advanced: [{ autoGainControl: true }, { noiseSuppression: true }, { echoCancellation: true }],
};
export const SCREEN_SHARING_MEDIA_CONSTRAINTS = {
video: {
frameRate: { ideal: 20, max: 25 },
width: { max: 1920, ideal: 1920 },
height: { max: 1080, ideal: 1080 },
},
};