[mirotalksfu] - add mic advance options

هذا الالتزام موجود في:
Miroslav Pejic
2023-10-21 22:56:58 +02:00
الأصل 989a9bbde6
التزام 3528dac639
10 ملفات معدلة مع 319 إضافات و25 حذوفات

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.1.1
* @version 1.1.2
*
*/
@@ -1028,7 +1028,7 @@ class RoomClient {
// ####################################################
getAudioConstraints(deviceId) {
return {
let constraints = {
audio: {
echoCancellation: true,
noiseSuppression: true,
@@ -1036,6 +1036,23 @@ class RoomClient {
},
video: false,
};
if (isRulesActive && isPresenter) {
constraints = {
audio: {
autoGainControl: switchAutoGainControl.checked,
echoCancellation: switchNoiseSuppression.checked,
noiseSuppression: switchEchoCancellation.checked,
sampleRate: parseInt(sampleRateSelect.value),
sampleSize: parseInt(sampleSizeSelect.value),
channelCount: parseInt(channelCountSelect.value),
latency: parseInt(micLatencyRange.value),
volume: parseInt(micVolumeRange.value / 100),
deviceId: deviceId,
},
video: false,
};
}
return constraints;
}
getCameraConstraints() {