[mirotalksfu] - pin chat, editor, poll, transcription on default
هذا الالتزام موجود في:
@@ -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 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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.6.36
|
* @version 1.6.37
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.6.36",
|
"version": "1.6.37",
|
||||||
"description": "WebRTC SFU browser-based video calls",
|
"description": "WebRTC SFU browser-based video calls",
|
||||||
"main": "Server.js",
|
"main": "Server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -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 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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.6.36
|
* @version 1.6.37
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -4614,7 +4614,7 @@ function showAbout() {
|
|||||||
imageUrl: image.about,
|
imageUrl: image.about,
|
||||||
customClass: { image: 'img-about' },
|
customClass: { image: 'img-about' },
|
||||||
position: 'center',
|
position: 'center',
|
||||||
title: 'WebRTC SFU v1.6.36',
|
title: 'WebRTC SFU v1.6.37',
|
||||||
html: `
|
html: `
|
||||||
<br />
|
<br />
|
||||||
<div id="about">
|
<div id="about">
|
||||||
|
|||||||
@@ -3887,6 +3887,7 @@ class RoomClient {
|
|||||||
if (!this.isChatOpen) {
|
if (!this.isChatOpen) {
|
||||||
await getRoomParticipants();
|
await getRoomParticipants();
|
||||||
hide(chatMinButton);
|
hide(chatMinButton);
|
||||||
|
|
||||||
if (!this.isMobileDevice) {
|
if (!this.isMobileDevice) {
|
||||||
BUTTONS.chat.chatMaxButton && show(chatMaxButton);
|
BUTTONS.chat.chatMaxButton && show(chatMaxButton);
|
||||||
}
|
}
|
||||||
@@ -3896,7 +3897,13 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
isParticipantsListOpen = !isParticipantsListOpen;
|
isParticipantsListOpen = !isParticipantsListOpen;
|
||||||
this.isChatOpen = !this.isChatOpen;
|
this.isChatOpen = !this.isChatOpen;
|
||||||
|
|
||||||
if (this.isChatPinned) this.chatUnpin();
|
if (this.isChatPinned) this.chatUnpin();
|
||||||
|
|
||||||
|
if (!this.isMobileDevice && this.isChatOpen && this.canBePinned()) {
|
||||||
|
this.toggleChatPin();
|
||||||
|
}
|
||||||
|
|
||||||
resizeChatRoom();
|
resizeChatRoom();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3958,6 +3965,12 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canBePinned() {
|
||||||
|
const viewportWidth = window.innerWidth;
|
||||||
|
const viewportHeight = window.innerHeight;
|
||||||
|
return viewportWidth >= 1024 && viewportHeight >= 768;
|
||||||
|
}
|
||||||
|
|
||||||
chatPin() {
|
chatPin() {
|
||||||
if (!this.isVideoPinned) {
|
if (!this.isVideoPinned) {
|
||||||
this.videoMediaContainerPin();
|
this.videoMediaContainerPin();
|
||||||
@@ -4589,7 +4602,12 @@ class RoomClient {
|
|||||||
this.sound('open');
|
this.sound('open');
|
||||||
}
|
}
|
||||||
this.isPollOpen = !this.isPollOpen;
|
this.isPollOpen = !this.isPollOpen;
|
||||||
|
|
||||||
if (this.isPollPinned) this.pollUnpin();
|
if (this.isPollPinned) this.pollUnpin();
|
||||||
|
|
||||||
|
if (!this.isMobileDevice && this.isPollOpen && this.canBePinned()) {
|
||||||
|
this.togglePollPin();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
togglePollPin() {
|
togglePollPin() {
|
||||||
@@ -4769,7 +4787,7 @@ class RoomClient {
|
|||||||
// Delete poll button
|
// Delete poll button
|
||||||
const deletePollButton = document.createElement('button');
|
const deletePollButton = document.createElement('button');
|
||||||
const deletePollButtonIcon = document.createElement('i');
|
const deletePollButtonIcon = document.createElement('i');
|
||||||
deletePollButtonIcon.className = 'fas fa-minus';
|
deletePollButtonIcon.className = 'fas fa-trash';
|
||||||
deletePollButton.id = 'delPoll';
|
deletePollButton.id = 'delPoll';
|
||||||
deletePollButton.className = 'del-btn';
|
deletePollButton.className = 'del-btn';
|
||||||
deletePollButton.insertBefore(deletePollButtonIcon, deletePollButton.firstChild);
|
deletePollButton.insertBefore(deletePollButtonIcon, deletePollButton.firstChild);
|
||||||
@@ -4907,7 +4925,12 @@ class RoomClient {
|
|||||||
this.sound('open');
|
this.sound('open');
|
||||||
}
|
}
|
||||||
this.isEditorOpen = !this.isEditorOpen;
|
this.isEditorOpen = !this.isEditorOpen;
|
||||||
|
|
||||||
if (this.isEditorPinned) this.editorUnpin();
|
if (this.isEditorPinned) this.editorUnpin();
|
||||||
|
|
||||||
|
if (!this.isMobileDevice && this.isEditorOpen && this.canBePinned()) {
|
||||||
|
this.toggleEditorPin();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleLockUnlockEditor() {
|
toggleLockUnlockEditor() {
|
||||||
|
|||||||
@@ -243,7 +243,13 @@ class Transcription {
|
|||||||
transcriptionRoom.style.display = 'none';
|
transcriptionRoom.style.display = 'none';
|
||||||
}
|
}
|
||||||
this.isHidden = !this.isHidden;
|
this.isHidden = !this.isHidden;
|
||||||
|
|
||||||
if (this.isPinned) this.unpinned();
|
if (this.isPinned) this.unpinned();
|
||||||
|
|
||||||
|
if (!rc.isMobileDevice && !this.isHidden && rc.canBePinned()) {
|
||||||
|
this.togglePinUnpin();
|
||||||
|
}
|
||||||
|
|
||||||
resizeTranscriptionRoom();
|
resizeTranscriptionRoom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم