[mirotalksfu] - keep AGC false, enable audio advance options for all, update dep
هذا الالتزام موجود في:
@@ -64,7 +64,7 @@ let BRAND = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: '<strong>WebRTC SFU v1.8.52</strong>',
|
||||
title: '<strong>WebRTC SFU v1.8.53</strong>',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
@@ -31,9 +31,9 @@ class LocalStorage {
|
||||
moderator_chat_cant_deep_seek: false, // Everyone can't chat with DeepSeek
|
||||
moderator_media_cant_sharing: false, // Everyone can't share media
|
||||
moderator_disconnect_all_on_leave: false, // Disconnect all participants on leave room
|
||||
mic_auto_gain_control: true,
|
||||
mic_echo_cancellations: true,
|
||||
mic_noise_suppression: true,
|
||||
mic_auto_gain_control: false, // Automatic gain control
|
||||
mic_echo_cancellations: true, // Echo cancellation
|
||||
mic_noise_suppression: true, // Noise suppression
|
||||
mic_sample_rate: 0, // 0: 48000 Hz 1: 44100 Hz
|
||||
mic_sample_size: 0, // 0: 16 bits 1: 32 bits
|
||||
mic_channel_count: 0, // 0: 1(mono) 1: 2 (stereo)
|
||||
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @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.8.52
|
||||
* @version 1.8.53
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -3656,7 +3656,7 @@ function getUUID() {
|
||||
|
||||
function handleButtonsBar() {
|
||||
const showButtonsHandler = () => showButtons();
|
||||
isDesktopDevice
|
||||
isDesktopDevice
|
||||
? document.body.addEventListener('mousemove', showButtonsHandler)
|
||||
: document.body.addEventListener('touchstart', showButtonsHandler);
|
||||
}
|
||||
@@ -5450,7 +5450,7 @@ function showAbout() {
|
||||
position: 'center',
|
||||
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
||||
customClass: { image: 'img-about' },
|
||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.52',
|
||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.53',
|
||||
html: `
|
||||
<br />
|
||||
<div id="about">
|
||||
|
||||
@@ -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.8.52
|
||||
* @version 1.8.53
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2078,32 +2078,20 @@ class RoomClient {
|
||||
// ####################################################
|
||||
|
||||
getAudioConstraints(deviceId) {
|
||||
let constraints = {
|
||||
return {
|
||||
audio: {
|
||||
autoGainControl: true,
|
||||
echoCancellation: true,
|
||||
noiseSuppression: true,
|
||||
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,
|
||||
};
|
||||
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() {
|
||||
|
||||
@@ -42,7 +42,7 @@ let BUTTONS = {
|
||||
broadcastingButton: true, // presenter
|
||||
lobbyButton: true, // presenter
|
||||
sendEmailInvitation: true, // presenter
|
||||
micOptionsButton: true, // presenter
|
||||
micOptionsButton: true,
|
||||
tabRTMPStreamingBtn: true, // presenter
|
||||
tabModerator: true, // presenter
|
||||
tabRecording: true,
|
||||
@@ -123,14 +123,12 @@ function handleRules(isPresenter) {
|
||||
// ##################################
|
||||
// GUEST
|
||||
// ##################################
|
||||
//BUTTONS.main.shareButton = false;
|
||||
BUTTONS.participantsList.saveInfoButton = false;
|
||||
BUTTONS.settings.lockRoomButton = false;
|
||||
BUTTONS.settings.unlockRoomButton = false;
|
||||
BUTTONS.settings.broadcastingButton = false;
|
||||
BUTTONS.settings.lobbyButton = false;
|
||||
BUTTONS.settings.sendEmailInvitation = false;
|
||||
BUTTONS.settings.micOptionsButton = false;
|
||||
BUTTONS.settings.tabRTMPStreamingBtn = false;
|
||||
BUTTONS.settings.tabModerator = false;
|
||||
BUTTONS.videoOff.muteAudioButton = false;
|
||||
@@ -140,8 +138,6 @@ function handleRules(isPresenter) {
|
||||
BUTTONS.consumerVideo.geolocationButton = false;
|
||||
BUTTONS.consumerVideo.banButton = false;
|
||||
BUTTONS.consumerVideo.ejectButton = false;
|
||||
//BUTTONS.consumerVideo.muteAudioButton = false;
|
||||
//BUTTONS.consumerVideo.muteVideoButton = false;
|
||||
BUTTONS.whiteboard.whiteboardLockButton = false;
|
||||
|
||||
//...
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم