[mirotalk] - fix getAudioConstraints

This commit is contained in:
Miroslav Pejic
2025-08-16 14:12:33 +02:00
parent 52109c9ad4
commit b878f030a1
5 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -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.60
* @version 1.5.61
*
*/
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mirotalk",
"version": "1.5.60",
"version": "1.5.61",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalk",
"version": "1.5.60",
"version": "1.5.61",
"license": "AGPL-3.0",
"dependencies": {
"@mattermost/client": "10.9.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.5.60",
"version": "1.5.61",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -103,7 +103,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.5.60',
title: 'WebRTC P2P v1.5.61',
html: `
<button
id="support-button"
+3 -4
View File
@@ -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.60
* @version 1.5.61
*
*/
@@ -6201,8 +6201,7 @@ async function getVideoConstraints(videoQuality) {
* @returns {object} audio constraints
*/
function getAudioConstraints(deviceId = null) {
let audioConstraints = {};
deviceId ? (audioConstraints.deviceId = deviceId) : (audioConstraints = true);
const audioConstraints = deviceId ? { deviceId: { exact: deviceId } } : true;
return {
audio: audioConstraints,
};
@@ -11351,7 +11350,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.5.60',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.5.61',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `