[mirotalksfu] - add mic advance options
هذا الالتزام موجود في:
@@ -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() {
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم