[mirotalk] - #264 add new sound reactions

This commit is contained in:
Miroslav Pejic
2025-01-02 13:30:06 +01:00
parent a8b2dcf7db
commit 3905443818
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.27
* @version 1.4.28
*
*/
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.4.27",
"version": "1.4.28",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+8 -2
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.27
* @version 1.4.28
*
*/
@@ -8920,6 +8920,9 @@ function handleEmoji(message, duration = 5000) {
function handleEmojiSound(message) {
const path = '../sounds/emoji/';
switch (message.shortcodes) {
case ':+1:':
playSound('ok', true, path);
break;
case ':clap:':
playSound('applause', true, path);
break;
@@ -8929,6 +8932,9 @@ function handleEmojiSound(message) {
case ':trumpet:':
playSound('trombone', true, path);
break;
case ':heart:':
playSound('heart', true, path);
break;
// ...
default:
break;
@@ -10800,7 +10806,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: '<strong>WebRTC P2P v1.4.27</strong>',
title: '<strong>WebRTC P2P v1.4.28</strong>',
imageAlt: 'mirotalk-about',
imageUrl: images.about,
customClass: { image: 'img-about' },
Binary file not shown.
Binary file not shown.