[mirotalk] - fix noise suppression init
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
# ====================================================
|
||||
# MiroTalk P2P v.1.7.34 - Environment Configuration
|
||||
# MiroTalk P2P v.1.7.35 - Environment Configuration
|
||||
# ====================================================
|
||||
|
||||
# App environment
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* ==============================================
|
||||
* MiroTalk P2P v.1.7.34 - Configuration File
|
||||
* MiroTalk P2P v.1.7.35 - Configuration File
|
||||
* ==============================================
|
||||
*
|
||||
* Branding and customizations require a license:
|
||||
|
||||
+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.7.34
|
||||
* @version 1.7.35
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.7.34",
|
||||
"version": "1.7.35",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mirotalk",
|
||||
"version": "1.7.34",
|
||||
"version": "1.7.35",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@mattermost/client": "11.3.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.7.34",
|
||||
"version": "1.7.35",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ let brand = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: 'WebRTC P2P v1.7.34',
|
||||
title: 'WebRTC P2P v1.7.35',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
+9
-4
@@ -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.7.34
|
||||
* @version 1.7.35
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1976,9 +1976,14 @@ async function loadLocalStorage() {
|
||||
await changeInitCamera(initVideoSelect.value);
|
||||
await handleLocalCameraMirror();
|
||||
}
|
||||
// Refresh audio
|
||||
// Refresh audio — skip if the current mic already matches the stored device
|
||||
// to avoid tearing down and rebuilding the noise-suppression pipeline unnecessarily.
|
||||
if (useAudio && audioInputSelect.value) {
|
||||
await changeLocalMicrophone(audioInputSelect.value);
|
||||
const currentMicStream = noiseProcessor?.originalStream || localAudioMediaStream;
|
||||
const currentMicDeviceId = getAudioTrack(currentMicStream)?.getSettings?.()?.deviceId;
|
||||
if (currentMicDeviceId !== audioInputSelect.value) {
|
||||
await changeLocalMicrophone(audioInputSelect.value);
|
||||
}
|
||||
}
|
||||
// Refresh speaker
|
||||
if (audioOutputSelect.value) await changeAudioDestination();
|
||||
@@ -13733,7 +13738,7 @@ function showAbout() {
|
||||
Swal.fire({
|
||||
background: swBg,
|
||||
position: 'center',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.34',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.35',
|
||||
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
|
||||
customClass: { image: 'img-about' },
|
||||
html: `
|
||||
|
||||
Reference in New Issue
Block a user