[mirotalksfu] - enhancement

هذا الالتزام موجود في:
Miroslav Pejic
2022-11-22 11:36:43 +01:00
الأصل ec2c85aa63
التزام 3d0b1a4f59
3 ملفات معدلة مع 15 إضافات و5 حذوفات

عرض الملف

@@ -164,6 +164,7 @@ function initClient() {
setTippy('chatCleanTextButton', 'Clean', 'top');
setTippy('chatPasteButton', 'Paste', 'top');
setTippy('chatSendButton', 'Send', 'top');
setTippy('showChatOnMsg', "Show me when I'm receive a new message", 'top');
setTippy('chatSpeechStartButton', 'Start speech recognition', 'top');
setTippy('chatSpeechStopButton', 'Stop speech recognition', 'top');
setTippy('chatEmojiButton', 'Emoji', 'top');
@@ -1050,7 +1051,10 @@ function handleSelects() {
pinVideoPosition.onchange = () => {
rc.togglePin(pinVideoPosition.value);
};
// chat
showChatOnMsg.onchange = (e) => {
rc.showChatOnMessage = e.currentTarget.checked;
};
// whiteboard options
wbDrawingColorEl.onchange = () => {
wbCanvas.freeDrawingBrush.color = wbDrawingColorEl.value;

عرض الملف

@@ -164,6 +164,7 @@ class RoomClient {
this.isVideoFullScreenSupported = peer_info.is_mobile_device && peer_info.os_name === 'iOS' ? false : true;
this.isChatOpen = false;
this.isChatEmojiOpen = false;
this.showChatOnMessage = true;
this.isChatBgTransparent = false;
this.isVideoPinned = false;
this.pinnedVideoPlayerId = null;
@@ -1081,6 +1082,7 @@ class RoomClient {
if (!isScreen) this.handleVP(elem.id, vp.id);
this.popupPeerInfo(p.id, this.peer_info);
this.checkPeerInfoStatus(this.peer_info);
if (isScreen) pn.click();
handleAspectRatio();
if (!this.isMobileDevice) {
this.setTippy(pn.id, 'Toggle Pin', 'top-end');
@@ -1400,9 +1402,8 @@ class RoomClient {
this.handlePN(elem.id, pn.id, d.id, remoteIsScreen);
this.popupPeerInfo(p.id, peer_info);
this.checkPeerInfoStatus(peer_info);
if (!remoteIsScreen && remotePrivacyOn) {
this.setVideoPrivacyStatus(remotePeerId, remotePrivacyOn);
}
if (!remoteIsScreen && remotePrivacyOn) this.setVideoPrivacyStatus(remotePeerId, remotePrivacyOn);
if (remoteIsScreen) pn.click();
this.sound('joined');
handleAspectRatio();
console.log('[addConsumer] Video-element-count', this.videoMediaContainer.childElementCount);
@@ -2370,7 +2371,7 @@ class RoomClient {
}
showMessage(data) {
if (!this.isChatOpen) this.toggleChat();
if (!this.isChatOpen && this.showChatOnMessage) this.toggleChat();
this.setMsgAvatar('left', data.peer_name);
this.appendMessage(
'left',