[mirotalksfu] - add img + new voice command

هذا الالتزام موجود في:
Miroslav Pejic
2022-01-19 18:47:59 +01:00
الأصل f653fa7162
التزام 05b37c5403
3 ملفات معدلة مع 8 إضافات و0 حذوفات

ثنائية
public/images/exit.png Normal file

ملف ثنائي غير معروض.

بعد

العرض:  |  الارتفاع:  |  الحجم: 1.5 KiB

عرض الملف

@@ -26,6 +26,7 @@ const image = {
youtube: '../images/youtube.png',
message: '../images/message.png',
share: '../images/share.png',
exit: '../images/exit.png',
};
const mediaType = {
@@ -1101,6 +1102,8 @@ class RoomClient {
Swal.fire({
background: swalBg,
imageAlt: 'mirotalksfu-leave-room',
imageUrl: image.exit,
position: 'center',
title: 'Leave this room?',
showDenyButton: true,

عرض الملف

@@ -40,6 +40,7 @@ const commands = {
roomLock: 'lock the room',
roomUnlock: 'unlock the room',
about: 'show the about',
stopRecognition: 'stop the voice recognition',
};
if ('webkitSpeechRecognition' in window) {
@@ -235,6 +236,10 @@ function execVoiceCommands(transcript) {
printCommand(commands.about);
aboutButton.click();
break;
case commands.stopRecognition:
printCommand(commands.stopRecognition);
chatSpeechStopButton.click();
break;
// ...
}
}