@huddle01/web-core
Version:
The Huddle01 Javascript SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
37 lines (34 loc) • 793 B
JavaScript
import { VIDEO_CONSTRAINTS } from './chunk-Q4PETRM3.js';
// src/constants/deviceConstraints.ts
var videoDefaultConstraints = {
video: {
...VIDEO_CONSTRAINTS.hd
}
};
var audioConstraints = {
audio: {
echoCancellation: true,
noiseSuppression: true
}
};
var shareConstraints = {
video: {
displaySurface: "monitor",
logicalSurface: true,
cursor: true,
width: { ideal: 1920, max: 1920 },
height: { ideal: 1080, max: 1080 },
frameRate: { ideal: 25, max: 30 }
},
audio: {
echoCancellation: true,
noiseSuppression: true
}
};
var defaultMediaConstraints = {
cam: videoDefaultConstraints,
mic: audioConstraints,
screen: shareConstraints
};
var deviceConstraints_default = defaultMediaConstraints;
export { deviceConstraints_default };