[mirotalksfu] - typo

هذا الالتزام موجود في:
Miroslav Pejic
2022-08-02 10:54:24 +02:00
الأصل 88a8b6b722
التزام 285e017c26

عرض الملف

@@ -46,15 +46,15 @@ const mediaType = {
const LOCAL_STORAGE_DEVICES = {
audio: {
index: null,
index: 0,
select: null,
},
speaker: {
index: null,
index: 0,
select: null,
},
video: {
index: null,
index: 0,
select: null,
},
};
@@ -1373,7 +1373,7 @@ class RoomClient {
console.log(who + ' Success attached media ' + type);
}
attachSinkId(elem, sinkId) {
async attachSinkId(elem, sinkId) {
if (typeof elem.sinkId !== 'undefined') {
elem.setSinkId(sinkId)
.then(() => {
@@ -1381,11 +1381,13 @@ class RoomClient {
})
.catch((err) => {
let errorMessage = err;
let speakerSelect = this.getId('speakerSelect');
if (err.name === 'SecurityError')
errorMessage = `You need to use HTTPS for selecting audio output device: ${err}`;
console.error('Attach SinkId error: ', errorMessage);
this.userLog('error', errorMessage, 'top-end');
this.getId('speakerSelect').selectedIndex = 0;
speakerSelect.selectedIndex = 0;
this.setLocalStorageDevices(mediaType.speaker, 0, speakerSelect.value);
});
} else {
let error = `Browser seems doesn't support output device selection.`;