[mirotalk] - Improve screen sharing pin logic

This commit is contained in:
Miroslav Pejic
2025-03-21 08:01:53 +01:00
parent 5844fd4e3f
commit ac68fba19f
4 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -43,7 +43,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.4.87
* @version 1.4.88
*
*/
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.4.87",
"version": "1.4.88",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
@@ -42,7 +42,7 @@
"homepage": "https://github.com/miroslavpejic85/mirotalk",
"dependencies": {
"@mattermost/client": "10.6.0",
"@sentry/node": "^9.6.1",
"@sentry/node": "^9.7.0",
"axios": "^1.8.4",
"colors": "^1.4.0",
"compression": "^1.8.0",
@@ -59,7 +59,7 @@
"js-yaml": "^4.1.0",
"ngrok": "^5.0.0-beta.2",
"nodemailer": "^6.10.0",
"openai": "^4.88.0",
"openai": "^4.89.0",
"qs": "^6.14.0",
"socket.io": "^4.8.1",
"swagger-ui-express": "^5.0.1",
+1 -1
View File
@@ -73,7 +73,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.4.87',
title: 'WebRTC P2P v1.4.88',
html: `
<button
id="support-button"
+8 -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.4.87
* @version 1.4.88
*
*/
@@ -3512,7 +3512,9 @@ async function loadRemoteMediaStream(stream, peers, peer_id, kind) {
handleVideoZoomInOut(remoteVideoZoomInBtn.id, remoteVideoZoomOutBtn.id, remoteMedia.id, peer_id);
// pin video on screen share detected
if (peer_video_status && peer_screen_status) remoteVideoPinBtn.click();
if (peer_video_status && peer_screen_status) {
remoteVideoPinBtn.click();
}
// handle video full screen mode
isVideoFullScreenSupported && handleVideoPlayerFs(remoteMedia.id, remoteVideoFullScreenBtn.id, peer_id);
@@ -6627,7 +6629,9 @@ async function toggleScreenSharing(init = false) {
isScreenStreaming ? elemDisplay(myPrivacyBtn, false) : elemDisplay(myPrivacyBtn, true);
}
if (isScreenStreaming || isVideoPinned) myVideoPinBtn.click();
if ((isScreenStreaming && thereArePeerConnections()) || isVideoPinned) {
myVideoPinBtn.click();
}
}
} catch (err) {
err.name === 'NotAllowedError'
@@ -11035,7 +11039,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.4.87',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.4.88',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `