Skip to content

Commit

Permalink
[call-me] - improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 7, 2025
1 parent 30f919b commit 806f7a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,10 @@ function handleEnumerateDevices() {
.enumerateDevices()
.then((devices) => {
const videoInputs = devices.filter((device) => device.kind === 'videoinput');
videoInputs.length > 1 && isMobileDevice
? swapCameraBtn.addEventListener('click', swapCamera)
: elemDisplay(swapCameraBtn, false);
if (videoInputs.length > 1 && isMobileDevice) {
swapCameraBtn.addEventListener('click', swapCamera);
elemDisplay(swapCameraBtn, true, 'inline');
}
})
.catch((error) => {
handleError('Error enumerating devices', error);
Expand Down
5 changes: 5 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ button {
touch-action: manipulation; /* Prevent zoom and other default behaviors */
}

/* Swap camera mobile only */
#swapCameraBtn {
display: none;
}

/* Session Time */
#sessionTime {
display: none;
Expand Down

0 comments on commit 806f7a1

Please sign in to comment.