[mirotalksfu] - improvements
هذا الالتزام موجود في:
@@ -1539,12 +1539,13 @@ function handleRoomClientEvents() {
|
|||||||
console.log('Room Client raise hand');
|
console.log('Room Client raise hand');
|
||||||
hide(raiseHandButton);
|
hide(raiseHandButton);
|
||||||
show(lowerHandButton);
|
show(lowerHandButton);
|
||||||
setColor(lowerHandButton, 'green');
|
setColor(lowerHandIcon, 'lime');
|
||||||
});
|
});
|
||||||
rc.on(RoomClient.EVENTS.lowerHand, () => {
|
rc.on(RoomClient.EVENTS.lowerHand, () => {
|
||||||
console.log('Room Client lower hand');
|
console.log('Room Client lower hand');
|
||||||
hide(lowerHandButton);
|
hide(lowerHandButton);
|
||||||
show(raiseHandButton);
|
show(raiseHandButton);
|
||||||
|
setColor(lowerHandIcon, 'white');
|
||||||
});
|
});
|
||||||
rc.on(RoomClient.EVENTS.startAudio, () => {
|
rc.on(RoomClient.EVENTS.startAudio, () => {
|
||||||
console.log('Room Client start audio');
|
console.log('Room Client start audio');
|
||||||
|
|||||||
@@ -1016,8 +1016,7 @@ class RoomClient {
|
|||||||
ideal: 15,
|
ideal: 15,
|
||||||
max: 30,
|
max: 30,
|
||||||
};
|
};
|
||||||
const selectedIndex = videoFps.selectedIndex;
|
const selectedValue = this.getSelectedIndexValue(videoFps);
|
||||||
const selectedValue = videoFps.options[selectedIndex].value;
|
|
||||||
const customFrameRate = { max: parseInt(selectedValue) };
|
const customFrameRate = { max: parseInt(selectedValue) };
|
||||||
const frameRate = selectedValue == 'max' ? defaultFrameRate : customFrameRate;
|
const frameRate = selectedValue == 'max' ? defaultFrameRate : customFrameRate;
|
||||||
let videoConstraints = {
|
let videoConstraints = {
|
||||||
@@ -1131,8 +1130,7 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getScreenConstraints() {
|
getScreenConstraints() {
|
||||||
const selectedIndex = screenFps.selectedIndex;
|
const selectedValue = this.getSelectedIndexValue(screenFps);
|
||||||
const selectedValue = screenFps.options[selectedIndex].value;
|
|
||||||
const frameRate = selectedValue == 'max' ? 30 : parseInt(selectedValue);
|
const frameRate = selectedValue == 'max' ? 30 : parseInt(selectedValue);
|
||||||
return {
|
return {
|
||||||
audio: true,
|
audio: true,
|
||||||
@@ -2275,6 +2273,10 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getSelectedIndexValue(elem){
|
||||||
|
return elem.options[elem.selectedIndex].value;
|
||||||
|
}
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
// UTILITY
|
// UTILITY
|
||||||
// ####################################################
|
// ####################################################
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ access to use this app.
|
|||||||
<p>Raise hand</p>
|
<p>Raise hand</p>
|
||||||
</button>
|
</button>
|
||||||
<button id="lowerHandButton" class="hidden">
|
<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>
|
<p>Lower hand</p>
|
||||||
</button>
|
</button>
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم