[mirotalk] - fix audio on mobile

This commit is contained in:
Miroslav Pejic
2025-11-04 21:20:19 +01:00
parent dce48ed3f7
commit 9889a4761b
5 changed files with 14 additions and 13 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.6.25
* @version 1.6.26
*
*/
+6 -6
View File
@@ -1,18 +1,18 @@
{
"name": "mirotalk",
"version": "1.6.25",
"version": "1.6.26",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalk",
"version": "1.6.25",
"version": "1.6.26",
"license": "AGPL-3.0",
"dependencies": {
"@mattermost/client": "11.0.4",
"@ngrok/ngrok": "1.5.2",
"@sentry/node": "^10.22.0",
"axios": "^1.13.1",
"axios": "^1.13.2",
"chokidar": "^4.0.3",
"colors": "^1.4.0",
"compression": "^1.8.1",
@@ -1586,9 +1586,9 @@
"license": "MIT"
},
"node_modules/axios": {
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.1.tgz",
"integrity": "sha512-hU4EGxxt+j7TQijx1oYdAjw4xuIp1wRQSsbMFwSthCWeBQur1eF+qJ5iQ5sN3Tw8YRzQNKb8jszgBdMDVqwJcw==",
"version": "1.13.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz",
"integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.6",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.6.25",
"version": "1.6.26",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
@@ -44,7 +44,7 @@
"@mattermost/client": "11.0.4",
"@ngrok/ngrok": "1.5.2",
"@sentry/node": "^10.22.0",
"axios": "^1.13.1",
"axios": "^1.13.2",
"chokidar": "^4.0.3",
"colors": "^1.4.0",
"compression": "^1.8.1",
+1 -1
View File
@@ -75,7 +75,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.6.25',
title: 'WebRTC P2P v1.6.26',
html: `
<button
id="support-button"
+4 -3
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.6.25
* @version 1.6.26
*
*/
@@ -4307,7 +4307,7 @@ async function loadRemoteMediaStream(stream, peers, peer_id, kind) {
});
// Only wire volume control if the element exists
if (remoteAudioVolumeEl) {
if (remoteAudioVolumeEl && isDesktopDevice) {
try {
handleAudioVolume(remoteAudioVolumeId, remoteAudioMedia.id);
elemDisplay(remoteAudioVolumeEl, peer_audio_status);
@@ -10016,6 +10016,7 @@ function handleAudioVolume(audioVolumeId, mediaId) {
audioVolume.value = 100;
audioVolume.addEventListener('input', () => {
media.volume = audioVolume.value / 100;
console.log('[AUDIO VOLUME] Desktop volume set to', media.volume);
});
} else {
if (audioVolume) elemDisplay(audioVolume, false);
@@ -12301,7 +12302,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.6.25',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.6.26',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `