[mirotalksfu] - avatars improvements

هذا الالتزام موجود في:
Miroslav Pejic
2024-10-16 20:41:18 +02:00
الأصل 0c7af73c27
التزام f230b4e5a0
3 ملفات معدلة مع 7 إضافات و6 حذوفات

عرض الملف

@@ -3003,7 +3003,7 @@ class RoomClient {
}
}
msgPopup(type, message) {
msgPopup(type, message, timer = 3000) {
switch (type) {
case 'warning':
case 'error':
@@ -3048,7 +3048,7 @@ class RoomClient {
showConfirmButton: false,
timerProgressBar: true,
toast: true,
timer: 3000,
timer: timer,
});
Toast.fire({
icon: 'info',
@@ -7853,6 +7853,7 @@ class RoomClient {
// ##############################################
getAvatarList() {
this.msgPopup('toast', 'Please hold on, we are processing the avatar lists...', 10000);
this.socket
.request('getAvatarList')
.then(function (completion) {
@@ -7885,7 +7886,7 @@ class RoomClient {
'default',
];
console.log('AVATARS LISTS', completion.response.avatars);
//console.log('AVATARS LISTS', completion.response.avatars);
completion.response.avatars.forEach((avatar) => {
avatar.avatar_states.forEach((avatarUi) => {
if (
@@ -7994,7 +7995,7 @@ class RoomClient {
const selectedPreviewURL = completion.response.list.find(
(flag) => flag.voice_id === selectedVoiceID,
)?.preview?.movio;
VideoAI.avatarVoice = selectedVoiceID;
VideoAI.avatarVoice = selectedVoiceID ? selectedVoiceID : null;
if (selectedPreviewURL) {
const avatarPreviewAudio = document.getElementById('avatarPreviewAudio');
avatarPreviewAudio.src = selectedPreviewURL;

عرض الملف

@@ -937,7 +937,7 @@ access to use this app.
<div id="tabVideoAI" class="tabcontent">
<div class="avatarsVideoAI">
<video id="avatarVideoAIPreview"></video>
<video id="avatarVideoAIPreview" poster="../images/loader.gif"></video>
<hr />
<table class="settingsTable">
<tr id="avatars">