[mirotalksfu] - improvements

هذا الالتزام موجود في:
Miroslav Pejic
2022-04-16 09:37:56 +02:00
الأصل ad7b11dba5
التزام f633acea45
2 ملفات معدلة مع 10 إضافات و7 حذوفات

عرض الملف

@@ -679,6 +679,7 @@ class RoomClient {
default: default:
return; return;
} }
this.sound('joined');
} catch (err) { } catch (err) {
console.error('Produce error:', err); console.error('Produce error:', err);
} }
@@ -822,7 +823,6 @@ class RoomClient {
this.handleTS(elem.id, ts.id); this.handleTS(elem.id, ts.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);
this.sound('joined');
handleAspectRatio(); handleAspectRatio();
console.log('[addProducer] Video-element-count', this.videoMediaContainer.childElementCount); console.log('[addProducer] Video-element-count', this.videoMediaContainer.childElementCount);
if (!this.isMobileDevice) { if (!this.isMobileDevice) {
@@ -1146,7 +1146,7 @@ class RoomClient {
pvOff.parentNode.removeChild(pvOff); pvOff.parentNode.removeChild(pvOff);
handleAspectRatio(); handleAspectRatio();
console.log('[removeVideoOff] Video-element-count', this.videoMediaContainer.childElementCount); console.log('[removeVideoOff] Video-element-count', this.videoMediaContainer.childElementCount);
this.sound('left'); if (peer_id != this.peer_id) this.sound('left');
} }
} }
@@ -2271,11 +2271,13 @@ class RoomClient {
Swal.fire({ Swal.fire({
allowOutsideClick: false, allowOutsideClick: false,
allowEscapeKey: false, allowEscapeKey: false,
showDenyButton: true,
background: swalBackground, background: swalBackground,
imageUrl: image.locked, imageUrl: image.locked,
input: 'text', input: 'text',
inputPlaceholder: 'Set Room password', inputPlaceholder: 'Set Room password',
confirmButtonText: `OK`, confirmButtonText: `OK`,
denyButtonText: `Cancel`,
showClass: { showClass: {
popup: 'animate__animated animate__fadeInDown', popup: 'animate__animated animate__fadeInDown',
}, },
@@ -2286,10 +2288,12 @@ class RoomClient {
if (!pwd) return 'Please enter the Room password'; if (!pwd) return 'Please enter the Room password';
this.RoomPassword = pwd; this.RoomPassword = pwd;
}, },
}).then(() => { }).then((result) => {
if (result.isConfirmed) {
data.password = this.RoomPassword; data.password = this.RoomPassword;
this.socket.emit('roomAction', data); this.socket.emit('roomAction', data);
this.roomStatus(action); this.roomStatus(action);
}
}); });
break; break;
case 'unlock': case 'unlock':

عرض الملف

@@ -113,7 +113,6 @@ if (speechRecognition) {
console.info('Browser supports webkitSpeechRecognition'); console.info('Browser supports webkitSpeechRecognition');
} else { } else {
console.warn('This browser not supports webkitSpeechRecognition'); console.warn('This browser not supports webkitSpeechRecognition');
hide(chatSpeechStartButton);
} }
function startSpeech(action) { function startSpeech(action) {