[mirotalk] - #293 keep AGC false, enable audio advance options for all, update dep
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ dependencies: {
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.5.12
|
||||
* @version 1.5.13
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.5.12",
|
||||
"version": "1.5.13",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
@@ -41,9 +41,9 @@
|
||||
"license": "AGPL-3.0",
|
||||
"homepage": "https://github.com/miroslavpejic85/mirotalk",
|
||||
"dependencies": {
|
||||
"@mattermost/client": "10.7.0",
|
||||
"@mattermost/client": "10.8.0",
|
||||
"@ngrok/ngrok": "1.5.1",
|
||||
"@sentry/node": "^9.22.0",
|
||||
"@sentry/node": "^9.24.0",
|
||||
"axios": "^1.9.0",
|
||||
"chokidar": "^4.0.3",
|
||||
"colors": "^1.4.0",
|
||||
@@ -61,7 +61,7 @@
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"js-yaml": "^4.1.0",
|
||||
"nodemailer": "^7.0.3",
|
||||
"openai": "^4.103.0",
|
||||
"openai": "^5.0.1",
|
||||
"qs": "^6.14.0",
|
||||
"socket.io": "^4.8.1",
|
||||
"swagger-ui-express": "^5.0.1",
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ let brand = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: 'WebRTC P2P v1.5.12',
|
||||
title: 'WebRTC P2P v1.5.13',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
+13
-28
@@ -15,7 +15,7 @@
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.5.12
|
||||
* @version 1.5.13
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1335,13 +1335,9 @@ function roomIsBusy() {
|
||||
function handleRules(isPresenter) {
|
||||
console.log('14. Peer isPresenter: ' + isPresenter + ' Reconnected to signaling server: ' + isPeerReconnected);
|
||||
if (!isPresenter) {
|
||||
//buttons.main.showShareRoomBtn = false;
|
||||
buttons.settings.showMicOptionsBtn = false;
|
||||
buttons.settings.showTabRoomParticipants = false;
|
||||
buttons.settings.showTabRoomSecurity = false;
|
||||
buttons.settings.showTabEmailInvitation = false;
|
||||
// buttons.remote.audioBtnClickAllowed = false;
|
||||
// buttons.remote.videoBtnClickAllowed = false;
|
||||
buttons.remote.showKickOutBtn = false;
|
||||
buttons.whiteboard.whiteboardLockBtn = false;
|
||||
//...
|
||||
@@ -1397,7 +1393,7 @@ function handleButtonsRule() {
|
||||
elemDisplay(captionTogglePin, !isMobileDevice && buttons.caption.showTogglePinBtn);
|
||||
elemDisplay(captionMaxBtn, !isMobileDevice && buttons.caption.showMaxBtn);
|
||||
// Settings
|
||||
elemDisplay(dropDownMicOptions, buttons.settings.showMicOptionsBtn && isPresenter); // auto-detected
|
||||
elemDisplay(dropDownMicOptions, buttons.settings.showMicOptionsBtn || isPresenter); // auto-detected
|
||||
elemDisplay(captionEveryoneBtn, buttons.settings.showCaptionEveryoneBtn);
|
||||
elemDisplay(muteEveryoneBtn, buttons.settings.showMuteEveryoneBtn);
|
||||
elemDisplay(hideEveryoneBtn, buttons.settings.showHideEveryoneBtn);
|
||||
@@ -6112,31 +6108,20 @@ async function getVideoConstraints(videoQuality) {
|
||||
* Get audio constraints
|
||||
*/
|
||||
async function getAudioConstraints() {
|
||||
// For all guests
|
||||
let constraints = {
|
||||
// For presenter
|
||||
const constraints = {
|
||||
audio: {
|
||||
autoGainControl: true,
|
||||
echoCancellation: true,
|
||||
noiseSuppression: true,
|
||||
autoGainControl: switchAutoGainControl.checked,
|
||||
echoCancellation: switchEchoCancellation.checked,
|
||||
noiseSuppression: switchNoiseSuppression.checked,
|
||||
sampleRate: parseInt(sampleRateSelect.value),
|
||||
sampleSize: parseInt(sampleSizeSelect.value),
|
||||
channelCount: parseInt(channelCountSelect.value),
|
||||
latency: parseInt(micLatencyRange.value),
|
||||
volume: parseInt(micVolumeRange.value / 100),
|
||||
},
|
||||
video: false,
|
||||
};
|
||||
// For presenter
|
||||
if (isRulesActive && isPresenter) {
|
||||
constraints = {
|
||||
audio: {
|
||||
autoGainControl: switchAutoGainControl.checked,
|
||||
echoCancellation: switchEchoCancellation.checked,
|
||||
noiseSuppression: switchNoiseSuppression.checked,
|
||||
sampleRate: parseInt(sampleRateSelect.value),
|
||||
sampleSize: parseInt(sampleSizeSelect.value),
|
||||
channelCount: parseInt(channelCountSelect.value),
|
||||
latency: parseInt(micLatencyRange.value),
|
||||
volume: parseInt(micVolumeRange.value / 100),
|
||||
},
|
||||
video: false,
|
||||
};
|
||||
}
|
||||
console.log('Audio constraints', constraints);
|
||||
return constraints;
|
||||
}
|
||||
@@ -11160,7 +11145,7 @@ function showAbout() {
|
||||
Swal.fire({
|
||||
background: swBg,
|
||||
position: 'center',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.5.12',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.5.13',
|
||||
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
|
||||
customClass: { image: 'img-about' },
|
||||
html: `
|
||||
|
||||
@@ -17,7 +17,7 @@ class LocalStorage {
|
||||
share_on_join: true,
|
||||
show_chat_on_msg: true,
|
||||
speech_in_msg: false,
|
||||
mic_auto_gain_control: true,
|
||||
mic_auto_gain_control: false,
|
||||
mic_echo_cancellations: true,
|
||||
mic_noise_suppression: true,
|
||||
mic_sample_rate: 0, // 0: 48000 Hz 1: 44100 Hz
|
||||
|
||||
Reference in New Issue
Block a user