Skip to content

Commit

Permalink
[mirotalkc2c] - change home to leave room
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Oct 3, 2024
1 parent fceb4c9 commit 04848d5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005
* @author Miroslav Pejic - [email protected]
* @version 1.1.30
* @version 1.1.31
*/

require('dotenv').config();
Expand Down
4 changes: 4 additions & 0 deletions frontend/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
::-webkit-scrollbar-track {
background: #1a1b1f;
}

.red {
color: red !important;
}
4 changes: 2 additions & 2 deletions frontend/html/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h1>Waiting</h1>
<button id="initAudioBtn" class="fas fa-microphone"></button>
<button id="initScreenShareBtn" class="fas fa-desktop"></button>
<button id="initSettingsBtn" class="fas fa-ellipsis-vertical"></button>
<button id="initHomeBtn" class="fas fa-home"></button>
<button id="initLeaveBtn" class="fa-solid fa-phone-slash red"></button>
</div>
</div>

Expand All @@ -85,7 +85,7 @@ <h1>Waiting</h1>
<button id="screenShareBtn" class="fas fa-desktop"></button>
<button id="chatOpenBtn" class="fas fa-comments"></button>
<button id="settingsBtn" class="fas fa-ellipsis-vertical"></button>
<button id="homeBtn" class="fas fa-home"></button>
<button id="leaveBtn" class="fa-solid fa-phone-slash red"></button>
</div>

<div id="settings">
Expand Down
14 changes: 7 additions & 7 deletions frontend/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005
* @author Miroslav Pejic - [email protected]
* @version 1.1.30
* @version 1.1.31
*/

const roomId = new URLSearchParams(window.location.search).get('room');
Expand All @@ -24,15 +24,15 @@ const initAudioBtn = document.getElementById('initAudioBtn');
const initVideoBtn = document.getElementById('initVideoBtn');
const initScreenShareBtn = document.getElementById('initScreenShareBtn');
const initSettingsBtn = document.getElementById('initSettingsBtn');
const initHomeBtn = document.getElementById('initHomeBtn');
const initLeaveBtn = document.getElementById('initLeaveBtn');
const buttonsBar = document.getElementById('buttonsBar');
const hideMeBtn = document.getElementById('hideMeBtn');
const audioBtn = document.getElementById('audioBtn');
const videoBtn = document.getElementById('videoBtn');
const swapCameraBtn = document.getElementById('swapCameraBtn');
const settingsBtn = document.getElementById('settingsBtn');
const screenShareBtn = document.getElementById('screenShareBtn');
const homeBtn = document.getElementById('homeBtn');
const leaveBtn = document.getElementById('leaveBtn');
const settings = document.getElementById('settings');
const settingsCloseBtn = document.getElementById('settingsCloseBtn');
const audioSource = document.getElementById('audioSource');
Expand Down Expand Up @@ -189,15 +189,15 @@ const tooltips = [
{ element: initAudioBtn, text: 'Toggle audio', position: 'top' },
{ element: initScreenShareBtn, text: 'Toggle screen sharing', position: 'top' },
{ element: initSettingsBtn, text: 'Toggle settings', position: 'top' },
{ element: initHomeBtn, text: 'Go to home page', position: 'top' },
{ element: initLeaveBtn, text: 'Leave room', position: 'top' },
{ element: hideMeBtn, text: 'Hide myself', position: 'top' },
{ element: videoBtn, text: 'Toggle video', position: 'top' },
{ element: audioBtn, text: 'Toggle audio', position: 'top' },
{ element: swapCameraBtn, text: 'Swap camera', position: 'top' },
{ element: screenShareBtn, text: 'Toggle screen sharing', position: 'top' },
{ element: chatOpenBtn, text: 'Toggle chat', position: 'top' },
{ element: settingsBtn, text: 'Toggle settings', position: 'top' },
{ element: homeBtn, text: 'Go to home page', position: 'top' },
{ element: leaveBtn, text: 'Leave room', position: 'top' },
//...
];

Expand Down Expand Up @@ -741,7 +741,7 @@ function handleIncomingDataChannelMessage(config) {
}

function handleEvents() {
initHomeBtn.onclick = () => {
initLeaveBtn.onclick = () => {
endCall();
};
copyRoomBtn.onclick = () => {
Expand Down Expand Up @@ -901,7 +901,7 @@ function handleEvents() {
}
checkLineBreaks();
};
homeBtn.onclick = () => {
leaveBtn.onclick = () => {
endCall();
};
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalkc2c",
"version": "1.1.30",
"version": "1.1.31",
"description": "A free WebRTC Cam-2-Cam browser-based video calls",
"main": "server.js",
"scripts": {
Expand Down

0 comments on commit 04848d5

Please sign in to comment.