diff --git a/app/src/Server.js b/app/src/Server.js index cfc3b089..9b034289 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -55,7 +55,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.92 + * @version 1.6.93 * */ diff --git a/package.json b/package.json index a09ddfde..db9a0cb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.6.92", + "version": "1.6.93", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -78,7 +78,7 @@ "mediasoup-client": "3.8.1", "ngrok": "^5.0.0-beta.2", "nodemailer": "^6.9.16", - "openai": "^4.78.0", + "openai": "^4.78.1", "qs": "6.13.1", "socket.io": "4.8.1", "swagger-ui-express": "5.0.1", diff --git a/public/js/Room.js b/public/js/Room.js index f6277bc7..b1a5e94f 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.92 + * @version 1.6.93 * */ @@ -4877,7 +4877,7 @@ function showAbout() { imageUrl: image.about, customClass: { image: 'img-about' }, position: 'center', - title: 'WebRTC SFU v1.6.92', + title: 'WebRTC SFU v1.6.93', html: `
diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 2b31a197..4e21c40c 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -9,7 +9,7 @@ * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.92 + * @version 1.6.93 * */ @@ -3500,6 +3500,16 @@ class RoomClient { } }); } + if (videoPlayer) { + videoPlayer.addEventListener('leavepictureinpicture', (event) => { + console.log('Exited PiP mode'); + if (videoPlayer.paused) { + videoPlayer.play().catch((error) => { + console.error('Error playing video after exit PIP mode:', error); + }); + } + }); + } } // ####################################################