Skip to content

Commit

Permalink
[mirotalksfu] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Nov 3, 2024
1 parent 92aea0a commit d302a04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions public/css/Root.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
--videoObjFit: cover;

--dd-color: #ffffff;

--videoBar-active: 0.1px solid rgba(102, 190, 255, 0.32);
}

* {
Expand Down
20 changes: 10 additions & 10 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1801,12 +1801,12 @@ class RoomClient {
// HELPERS
// ####################################################

createButton = (id, className) => {
createButton(id, className) {
const button = document.createElement('button');
button.id = id;
button.className = className;
return button;
};
}

// ####################################################
// PRODUCER
Expand Down Expand Up @@ -2275,13 +2275,6 @@ class RoomClient {
eVc = document.createElement('div');
eVc.className = 'expand-video-content';

pv = document.createElement('input');
pv.id = remotePeerId + '___pVolume';
pv.type = 'range';
pv.min = 0;
pv.max = 100;
pv.value = 100;

pip = this.createButton(id + '__pictureInPicture', html.pip);
mv = this.createButton(id + '__videoMirror', html.mirror);
fs = this.createButton(id + '__fullScreen', html.fullScreen);
Expand Down Expand Up @@ -2327,6 +2320,13 @@ class RoomClient {

peerNameContainer.appendChild(peerNameSpan);

pv = document.createElement('input');
pv.id = remotePeerId + '___pVolume';
pv.type = 'range';
pv.min = 0;
pv.max = 100;
pv.value = 100;

BUTTONS.consumerVideo.audioVolumeInput && peerNameContainer.appendChild(pv);
peerNameHeader.appendChild(peerNameContainer);

Expand Down Expand Up @@ -3545,7 +3545,7 @@ class RoomClient {
rc.sound('open');
show(videoBar);
animateCSS(videoBar, 'fadeInDown');
if (participantsCount > 1) videoPlayer.style.border = '0.1px solid #2a7aef';
if (participantsCount > 1) videoPlayer.style.border = 'var(--videoBar-active)';
} else {
animateCSS(videoBar, 'fadeOutUp').then((msg) => {
hide(videoBar);
Expand Down

0 comments on commit d302a04

Please sign in to comment.