-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mirotalksfu] - improvements, update dep
- Loading branch information
1 parent
2859818
commit 78fff65
Showing
6 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,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.41 | ||
* @version 1.4.42 | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.41 | ||
* @version 1.4.42 | ||
* | ||
*/ | ||
|
||
|
@@ -1460,6 +1460,9 @@ function handleButtons() { | |
showFreeAvatars = e.currentTarget.checked; | ||
rc.getAvatarList(); | ||
}; | ||
avatarQuality.onchange = (e) => { | ||
VideoAI.quality = e.target.value; | ||
}; | ||
refreshVideoDevices.onclick = async () => { | ||
await refreshMyVideoDevices(); | ||
userLog('info', 'Refreshed video devices', 'top-end'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.41 | ||
* @version 1.4.42 | ||
* | ||
*/ | ||
|
||
|
@@ -3852,11 +3852,13 @@ class RoomClient { | |
? `<span class="message-data-time">${time}, ${getFromName} ( me ) </span>` | ||
: `<span class="message-data-time">${time}, ${getFromName} </span>`; | ||
|
||
const formatMessage = this.formatMsg(getMsg); | ||
console.log('FormatMessage', formatMessage); | ||
const speechButton = this.isSpeechSynthesisSupported | ||
? `<button | ||
id="msg-speech-${chatMessagesId}" | ||
class="mr5" | ||
onclick="rc.speechMessage(false, '${getFromName}', '${this.formatMsg(getMsg)}')"> | ||
onclick="rc.speechText('${formatMessage}')"> | ||
<i class="fas fa-volume-high"></i> | ||
</button>` | ||
: ''; | ||
|
@@ -4097,10 +4099,14 @@ class RoomClient { | |
} | ||
|
||
speechText(msg) { | ||
const speech = new SpeechSynthesisUtterance(); | ||
speech.text = msg; | ||
speech.rate = 0.9; | ||
window.speechSynthesis.speak(speech); | ||
if (VideoAI.active) { | ||
this.streamingTask(msg); | ||
} else { | ||
const speech = new SpeechSynthesisUtterance(); | ||
speech.text = msg; | ||
speech.rate = 0.9; | ||
window.speechSynthesis.speak(speech); | ||
} | ||
} | ||
|
||
chatToggleBg() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters