[mirotalksfu] - enhancement
هذا الالتزام موجود في:
@@ -164,6 +164,7 @@ function initClient() {
|
|||||||
setTippy('chatCleanTextButton', 'Clean', 'top');
|
setTippy('chatCleanTextButton', 'Clean', 'top');
|
||||||
setTippy('chatPasteButton', 'Paste', 'top');
|
setTippy('chatPasteButton', 'Paste', 'top');
|
||||||
setTippy('chatSendButton', 'Send', 'top');
|
setTippy('chatSendButton', 'Send', 'top');
|
||||||
|
setTippy('showChatOnMsg', "Show me when I'm receive a new message", 'top');
|
||||||
setTippy('chatSpeechStartButton', 'Start speech recognition', 'top');
|
setTippy('chatSpeechStartButton', 'Start speech recognition', 'top');
|
||||||
setTippy('chatSpeechStopButton', 'Stop speech recognition', 'top');
|
setTippy('chatSpeechStopButton', 'Stop speech recognition', 'top');
|
||||||
setTippy('chatEmojiButton', 'Emoji', 'top');
|
setTippy('chatEmojiButton', 'Emoji', 'top');
|
||||||
@@ -1050,7 +1051,10 @@ function handleSelects() {
|
|||||||
pinVideoPosition.onchange = () => {
|
pinVideoPosition.onchange = () => {
|
||||||
rc.togglePin(pinVideoPosition.value);
|
rc.togglePin(pinVideoPosition.value);
|
||||||
};
|
};
|
||||||
|
// chat
|
||||||
|
showChatOnMsg.onchange = (e) => {
|
||||||
|
rc.showChatOnMessage = e.currentTarget.checked;
|
||||||
|
};
|
||||||
// whiteboard options
|
// whiteboard options
|
||||||
wbDrawingColorEl.onchange = () => {
|
wbDrawingColorEl.onchange = () => {
|
||||||
wbCanvas.freeDrawingBrush.color = wbDrawingColorEl.value;
|
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.isVideoFullScreenSupported = peer_info.is_mobile_device && peer_info.os_name === 'iOS' ? false : true;
|
||||||
this.isChatOpen = false;
|
this.isChatOpen = false;
|
||||||
this.isChatEmojiOpen = false;
|
this.isChatEmojiOpen = false;
|
||||||
|
this.showChatOnMessage = true;
|
||||||
this.isChatBgTransparent = false;
|
this.isChatBgTransparent = false;
|
||||||
this.isVideoPinned = false;
|
this.isVideoPinned = false;
|
||||||
this.pinnedVideoPlayerId = null;
|
this.pinnedVideoPlayerId = null;
|
||||||
@@ -1081,6 +1082,7 @@ class RoomClient {
|
|||||||
if (!isScreen) this.handleVP(elem.id, vp.id);
|
if (!isScreen) this.handleVP(elem.id, vp.id);
|
||||||
this.popupPeerInfo(p.id, this.peer_info);
|
this.popupPeerInfo(p.id, this.peer_info);
|
||||||
this.checkPeerInfoStatus(this.peer_info);
|
this.checkPeerInfoStatus(this.peer_info);
|
||||||
|
if (isScreen) pn.click();
|
||||||
handleAspectRatio();
|
handleAspectRatio();
|
||||||
if (!this.isMobileDevice) {
|
if (!this.isMobileDevice) {
|
||||||
this.setTippy(pn.id, 'Toggle Pin', 'top-end');
|
this.setTippy(pn.id, 'Toggle Pin', 'top-end');
|
||||||
@@ -1400,9 +1402,8 @@ class RoomClient {
|
|||||||
this.handlePN(elem.id, pn.id, d.id, remoteIsScreen);
|
this.handlePN(elem.id, pn.id, d.id, remoteIsScreen);
|
||||||
this.popupPeerInfo(p.id, peer_info);
|
this.popupPeerInfo(p.id, peer_info);
|
||||||
this.checkPeerInfoStatus(peer_info);
|
this.checkPeerInfoStatus(peer_info);
|
||||||
if (!remoteIsScreen && remotePrivacyOn) {
|
if (!remoteIsScreen && remotePrivacyOn) this.setVideoPrivacyStatus(remotePeerId, remotePrivacyOn);
|
||||||
this.setVideoPrivacyStatus(remotePeerId, remotePrivacyOn);
|
if (remoteIsScreen) pn.click();
|
||||||
}
|
|
||||||
this.sound('joined');
|
this.sound('joined');
|
||||||
handleAspectRatio();
|
handleAspectRatio();
|
||||||
console.log('[addConsumer] Video-element-count', this.videoMediaContainer.childElementCount);
|
console.log('[addConsumer] Video-element-count', this.videoMediaContainer.childElementCount);
|
||||||
@@ -2370,7 +2371,7 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showMessage(data) {
|
showMessage(data) {
|
||||||
if (!this.isChatOpen) this.toggleChat();
|
if (!this.isChatOpen && this.showChatOnMessage) this.toggleChat();
|
||||||
this.setMsgAvatar('left', data.peer_name);
|
this.setMsgAvatar('left', data.peer_name);
|
||||||
this.appendMessage(
|
this.appendMessage(
|
||||||
'left',
|
'left',
|
||||||
|
|||||||
@@ -416,6 +416,11 @@
|
|||||||
<button id="chatPasteButton" class="hidden">
|
<button id="chatPasteButton" class="hidden">
|
||||||
<i class="fas fa-paste"></i>
|
<i class="fas fa-paste"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<div class="form-check form-switch form-switch-md">
|
||||||
|
|
||||||
|
<label class="form-check-label" style="color: #fff" for="showChatOnMsg"></label>
|
||||||
|
<input class="form-check-input" type="checkbox" id="showChatOnMsg" checked />
|
||||||
|
</div>
|
||||||
<button id="chatSendButton" class="hidden">
|
<button id="chatSendButton" class="hidden">
|
||||||
<i class="fas fa-paper-plane"></i>
|
<i class="fas fa-paper-plane"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم