Skip to content

Commit

Permalink
[mirotalk] - #264 add new emoji sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 3, 2025
1 parent 6aa5d58 commit 93041d8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - [email protected]
* @version 1.4.33
* @version 1.4.34
*
*/

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": "mirotalk",
"version": "1.4.33",
"version": "1.4.34",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
Expand Down
11 changes: 9 additions & 2 deletions public/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - [email protected]
* @version 1.4.33
* @version 1.4.34
*
*/

Expand Down Expand Up @@ -8921,6 +8921,7 @@ function handleEmojiSound(message) {
const path = '../sounds/emoji/';
switch (message.shortcodes) {
case ':+1:':
case ':ok_hand:':
playSound('ok', true, path);
break;
case ':clap:':
Expand Down Expand Up @@ -8952,6 +8953,12 @@ function handleEmojiSound(message) {
case ':rocket:':
playSound('rocket', true, path);
break;
case ':sparkles:':
case ':star:':
case ':star2:':
case ':dizzy:':
playSound('tinkerbell', true, path);
break;
// ...
default:
break;
Expand Down Expand Up @@ -10823,7 +10830,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: '<strong>WebRTC P2P v1.4.33</strong>',
title: '<strong>WebRTC P2P v1.4.34</strong>',
imageAlt: 'mirotalk-about',
imageUrl: images.about,
customClass: { image: 'img-about' },
Expand Down
Binary file added public/sounds/emoji/tinkerbell.mp3
Binary file not shown.

0 comments on commit 93041d8

Please sign in to comment.