Skip to content

Commit

Permalink
[mirotalksfu] - improve VideoAI settings UI
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jul 6, 2024
1 parent f870ab0 commit 38bbe6a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies: {
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.4.86
* @version 1.4.87
*
*/

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": "mirotalksfu",
"version": "1.4.86",
"version": "1.4.87",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {
Expand Down
23 changes: 15 additions & 8 deletions public/css/Room.css
Original file line number Diff line number Diff line change
Expand Up @@ -1421,12 +1421,16 @@ hr {
--------------------------------------------------------------*/

.avatarsVideoAI {
min-height: 480px;
max-height: 600px;
color: white;
overflow: auto;
position: absolute;
top: 0;
left: 0;
padding: 10px;
width: 100%;
/* height: 100%; */
color: #ffffff;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
overflow: auto;
}

.container-flex {
Expand All @@ -1437,26 +1441,25 @@ hr {
/* Custom avatar audio UI */

#audio-container {
background: var(--select-bg);
margin-top: 10px;
color: #fff;
padding: 10px;
border-radius: 5px;
}

#audio-container audio {
width: 100%;
width: 320px;
outline: none;
}

#audio-container audio::-webkit-media-controls-panel {
background: var(--body-bg);
border-radius: 5px;
padding: 5px;
}

#audio-container audio::-webkit-media-controls-timeline {
background: var(--body-bg);
border-radius: 5px;
margin: 5px;
}

/* Styling for the audio volume controls */
Expand Down Expand Up @@ -1485,6 +1488,10 @@ hr {
color: #fff;
}

#avatarVideoAIStart {
margin-bottom: 5px;
}

/*
z-index:
- 1 videoMediaContainer
Expand Down
4 changes: 2 additions & 2 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.4.86
* @version 1.4.87
*
*/

Expand Down Expand Up @@ -4092,7 +4092,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.4.86',
title: 'WebRTC SFU v1.4.87',
html: `
<br />
<div id="about">
Expand Down
2 changes: 1 addition & 1 deletion public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.4.86
* @version 1.4.87
*
*/

Expand Down
5 changes: 2 additions & 3 deletions public/views/Room.html
Original file line number Diff line number Diff line change
Expand Up @@ -914,12 +914,11 @@ <h1>Loading</h1>
name="avatarVoiceIDs"
class="form-select text-light bg-dark"
>
<option value="">Select Avatar Voice</option></select
><br />
<option value="">Select Avatar Voice</option>
</select>
<div id="audio-container">
<audio id="avatarPreviewAudio" controls></audio>
</div>
<br />
<button id="avatarVideoAIStart" class="btn-custom">
<i class="fas fa-play"></i> Start Avatar Session
</button>
Expand Down

0 comments on commit 38bbe6a

Please sign in to comment.