@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.
39 lines (35 loc) • 851 B
JavaScript
'use strict';
var chunk7RPWAXHI_cjs = require('./chunk-7RPWAXHI.cjs');
// src/constants/deviceConstraints.ts
var videoDefaultConstraints = {
video: {
...chunk7RPWAXHI_cjs.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;
exports.deviceConstraints_default = deviceConstraints_default;