[mirotalksfu] - improvements

هذا الالتزام موجود في:
Miroslav Pejic
2023-08-26 09:52:09 +02:00
الأصل f6b620924d
التزام f67a1dc763
3 ملفات معدلة مع 9 إضافات و6 حذوفات

عرض الملف

@@ -1539,12 +1539,13 @@ function handleRoomClientEvents() {
console.log('Room Client raise hand');
hide(raiseHandButton);
show(lowerHandButton);
setColor(lowerHandButton, 'green');
setColor(lowerHandIcon, 'lime');
});
rc.on(RoomClient.EVENTS.lowerHand, () => {
console.log('Room Client lower hand');
hide(lowerHandButton);
show(raiseHandButton);
setColor(lowerHandIcon, 'white');
});
rc.on(RoomClient.EVENTS.startAudio, () => {
console.log('Room Client start audio');

عرض الملف

@@ -1016,8 +1016,7 @@ class RoomClient {
ideal: 15,
max: 30,
};
const selectedIndex = videoFps.selectedIndex;
const selectedValue = videoFps.options[selectedIndex].value;
const selectedValue = this.getSelectedIndexValue(videoFps);
const customFrameRate = { max: parseInt(selectedValue) };
const frameRate = selectedValue == 'max' ? defaultFrameRate : customFrameRate;
let videoConstraints = {
@@ -1131,8 +1130,7 @@ class RoomClient {
}
getScreenConstraints() {
const selectedIndex = screenFps.selectedIndex;
const selectedValue = screenFps.options[selectedIndex].value;
const selectedValue = this.getSelectedIndexValue(screenFps);
const frameRate = selectedValue == 'max' ? 30 : parseInt(selectedValue);
return {
audio: true,
@@ -2275,6 +2273,10 @@ class RoomClient {
}
}
getSelectedIndexValue(elem){
return elem.options[elem.selectedIndex].value;
}
// ####################################################
// UTILITY
// ####################################################

عرض الملف

@@ -252,7 +252,7 @@ access to use this app.
<p>Raise hand</p>
</button>
<button id="lowerHandButton" class="hidden">
<i class="fas fa-hand-paper"></i>
<i id="lowerHandIcon" class="fas fa-hand-paper"></i>
<p>Lower hand</p>
</button>
<br />