[mirotalksfu] - add share file btn to chat
هذا الالتزام موجود في:
@@ -108,6 +108,7 @@ function initClient() {
|
|||||||
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');
|
||||||
|
setTippy('chatShareFileButton', 'Share file', 'top');
|
||||||
setTippy('chatCleanButton', 'Clean', 'bottom');
|
setTippy('chatCleanButton', 'Clean', 'bottom');
|
||||||
setTippy('chatSaveButton', 'Save', 'bottom');
|
setTippy('chatSaveButton', 'Save', 'bottom');
|
||||||
setTippy('sessionTime', 'Session time', 'right');
|
setTippy('sessionTime', 'Session time', 'right');
|
||||||
@@ -550,6 +551,7 @@ function roomIsReady() {
|
|||||||
show(chatButton);
|
show(chatButton);
|
||||||
show(chatSendButton);
|
show(chatSendButton);
|
||||||
show(chatEmojiButton);
|
show(chatEmojiButton);
|
||||||
|
show(chatShareFileButton);
|
||||||
if (isWebkitSpeechRecognitionSupported) {
|
if (isWebkitSpeechRecognitionSupported) {
|
||||||
show(chatSpeechStartButton);
|
show(chatSpeechStartButton);
|
||||||
}
|
}
|
||||||
@@ -719,6 +721,9 @@ function handleButtons() {
|
|||||||
chatEmojiButton.onclick = () => {
|
chatEmojiButton.onclick = () => {
|
||||||
rc.toggleChatEmoji();
|
rc.toggleChatEmoji();
|
||||||
};
|
};
|
||||||
|
chatShareFileButton.onclick = () => {
|
||||||
|
fileShareButton.click();
|
||||||
|
};
|
||||||
chatSpeechStartButton.onclick = () => {
|
chatSpeechStartButton.onclick = () => {
|
||||||
startSpeech(true);
|
startSpeech(true);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -364,6 +364,9 @@ access to use this app.
|
|||||||
<button id="chatEmojiButton" class="hidden">
|
<button id="chatEmojiButton" class="hidden">
|
||||||
<i class="fas fa-smile"></i>
|
<i class="fas fa-smile"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<button id="chatShareFileButton" class="hidden">
|
||||||
|
<i class="fas fa-file"></i>
|
||||||
|
</button>
|
||||||
<button id="chatSpeechStartButton" class="hidden">
|
<button id="chatSpeechStartButton" class="hidden">
|
||||||
<i class="fas fa-microphone-slash"></i>
|
<i class="fas fa-microphone-slash"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم