|
@@ -14,13 +14,18 @@ import {
|
14
|
14
|
*/
|
15
|
15
|
export const ENDPOINT_REACTION_NAME = 'endpoint-reaction';
|
16
|
16
|
|
|
17
|
+/**
|
|
18
|
+ * The prefix for all reaction sound IDs. Also the ID used in config to disable reaction sounds.
|
|
19
|
+ */
|
|
20
|
+export const REACTION_SOUND = 'REACTION_SOUND';
|
|
21
|
+
|
17
|
22
|
/**
|
18
|
23
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is
|
19
|
24
|
* triggered when a new laugh reaction is received.
|
20
|
25
|
*
|
21
|
26
|
* @type { string }
|
22
|
27
|
*/
|
23
|
|
-export const LAUGH_SOUND_ID = 'LAUGH_SOUND_';
|
|
28
|
+export const LAUGH_SOUND_ID = `${REACTION_SOUND}_LAUGH_`;
|
24
|
29
|
|
25
|
30
|
/**
|
26
|
31
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is
|
|
@@ -28,7 +33,7 @@ export const LAUGH_SOUND_ID = 'LAUGH_SOUND_';
|
28
|
33
|
*
|
29
|
34
|
* @type {string}
|
30
|
35
|
*/
|
31
|
|
-export const CLAP_SOUND_ID = 'CLAP_SOUND_';
|
|
36
|
+export const CLAP_SOUND_ID = `${REACTION_SOUND}_CLAP_`;
|
32
|
37
|
|
33
|
38
|
/**
|
34
|
39
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is
|
|
@@ -36,7 +41,7 @@ export const CLAP_SOUND_ID = 'CLAP_SOUND_';
|
36
|
41
|
*
|
37
|
42
|
* @type {string}
|
38
|
43
|
*/
|
39
|
|
-export const LIKE_SOUND_ID = 'LIKE_SOUND_';
|
|
44
|
+export const LIKE_SOUND_ID = `${REACTION_SOUND}_LIKE_`;
|
40
|
45
|
|
41
|
46
|
/**
|
42
|
47
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is
|
|
@@ -44,7 +49,7 @@ export const LIKE_SOUND_ID = 'LIKE_SOUND_';
|
44
|
49
|
*
|
45
|
50
|
* @type {string}
|
46
|
51
|
*/
|
47
|
|
-export const BOO_SOUND_ID = 'BOO_SOUND_';
|
|
52
|
+export const BOO_SOUND_ID = `${REACTION_SOUND}_BOO_`;
|
48
|
53
|
|
49
|
54
|
/**
|
50
|
55
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is
|
|
@@ -52,7 +57,7 @@ export const BOO_SOUND_ID = 'BOO_SOUND_';
|
52
|
57
|
*
|
53
|
58
|
* @type {string}
|
54
|
59
|
*/
|
55
|
|
-export const SURPRISE_SOUND_ID = 'SURPRISE_SOUND_';
|
|
60
|
+export const SURPRISE_SOUND_ID = `${REACTION_SOUND}_SURPRISE_`;
|
56
|
61
|
|
57
|
62
|
/**
|
58
|
63
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is
|
|
@@ -60,7 +65,7 @@ export const SURPRISE_SOUND_ID = 'SURPRISE_SOUND_';
|
60
|
65
|
*
|
61
|
66
|
* @type {string}
|
62
|
67
|
*/
|
63
|
|
-export const SILENCE_SOUND_ID = 'SILENCE_SOUND_';
|
|
68
|
+export const SILENCE_SOUND_ID = `${REACTION_SOUND}_SILENCE_`;
|
64
|
69
|
|
65
|
70
|
/**
|
66
|
71
|
* The audio ID of the audio element for which the {@link playAudio} action is
|