[mirotalksfu] - #171 allow volumeBar on videoOff

هذا الالتزام موجود في:
Miroslav Pejic
2024-11-04 14:11:19 +01:00
الأصل 1698860095
التزام 44a39e3709

عرض الملف

@@ -2618,15 +2618,14 @@ class RoomClient {
au = this.createButton(peer_id + '__audio', peer_audio ? html.audioOn : html.audioOff); au = this.createButton(peer_id + '__audio', peer_audio ? html.audioOn : html.audioOff);
if (remotePeer) { pv = document.createElement('input');
// pv.id = peer_id + '___pVolume';
pv = document.createElement('input'); pv.type = 'range';
pv.id = peer_id + '___pVolume'; pv.min = 0;
pv.type = 'range'; pv.max = 100;
pv.min = 0; pv.value = 100;
pv.max = 100;
pv.value = 100;
if (remotePeer) {
sf = this.createButton('remotePeer___' + peer_id + '___sendFile', html.sendFile); sf = this.createButton('remotePeer___' + peer_id + '___sendFile', html.sendFile);
sm = this.createButton('remotePeer___' + peer_id + '___sendMsg', html.sendMsg); sm = this.createButton('remotePeer___' + peer_id + '___sendMsg', html.sendMsg);
sv = this.createButton('remotePeer___' + peer_id + '___sendVideo', html.sendVideo); sv = this.createButton('remotePeer___' + peer_id + '___sendVideo', html.sendVideo);
@@ -2664,8 +2663,8 @@ class RoomClient {
BUTTONS.videoOff.sendVideoButton && vb.appendChild(sv); BUTTONS.videoOff.sendVideoButton && vb.appendChild(sv);
BUTTONS.videoOff.sendFileButton && vb.appendChild(sf); BUTTONS.videoOff.sendFileButton && vb.appendChild(sf);
BUTTONS.videoOff.sendMessageButton && vb.appendChild(sm); BUTTONS.videoOff.sendMessageButton && vb.appendChild(sm);
BUTTONS.videoOff.audioVolumeInput && vb.appendChild(pv);
} }
BUTTONS.videoOff.audioVolumeInput && vb.appendChild(pv);
vb.appendChild(au); vb.appendChild(au);
d.appendChild(i); d.appendChild(i);
@@ -2673,6 +2672,7 @@ class RoomClient {
d.appendChild(h); d.appendChild(h);
d.appendChild(pm); d.appendChild(pm);
//d.appendChild(vb); //d.appendChild(vb);
document.body.appendChild(vb); document.body.appendChild(vb);
this.videoMediaContainer.appendChild(d); this.videoMediaContainer.appendChild(d);
BUTTONS.videoOff.muteAudioButton && this.handleAU(au.id); BUTTONS.videoOff.muteAudioButton && this.handleAU(au.id);
@@ -2685,6 +2685,8 @@ class RoomClient {
this.handleGL(gl.id); this.handleGL(gl.id);
this.handleBAN(ban.id); this.handleBAN(ban.id);
this.handleKO(ko.id); this.handleKO(ko.id);
} else {
this.handlePV(this.audioConsumers.get(pv.id) + '___' + pv.id);
} }
this.handleVB(d.id, vb.id); this.handleVB(d.id, vb.id);