[mirotalksfu] - add img + new voice command
هذا الالتزام موجود في:
ثنائية
public/images/exit.png
Normal file
ثنائية
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;
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم