2018-05-21 20:52:30 +00:00
|
|
|
import {
|
|
|
|
OUTGOING_CALL_EXPIRED_SOUND_ID,
|
|
|
|
OUTGOING_CALL_REJECTED_SOUND_ID,
|
|
|
|
OUTGOING_CALL_RINGING_SOUND_ID,
|
|
|
|
OUTGOING_CALL_START_SOUND_ID
|
|
|
|
} from './constants';
|
2018-05-16 15:03:10 +00:00
|
|
|
|
|
|
|
/**
|
2018-05-21 20:52:30 +00:00
|
|
|
* Maps the sounds IDs with the filenames sounds associated with them.
|
|
|
|
*
|
|
|
|
* @type {Map<string, string>}
|
2018-05-16 15:03:10 +00:00
|
|
|
*/
|
2018-05-21 20:52:30 +00:00
|
|
|
export const sounds = new Map([
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the sound file which will be played when outgoing call is
|
|
|
|
* expired.
|
|
|
|
*/
|
2022-11-10 16:06:40 +00:00
|
|
|
[ OUTGOING_CALL_EXPIRED_SOUND_ID, { file: 'rejected.mp3' } ],
|
2018-05-21 20:52:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the sound file which will be played when outgoing call is
|
|
|
|
* rejected.
|
|
|
|
*/
|
2022-11-10 16:06:40 +00:00
|
|
|
[ OUTGOING_CALL_REJECTED_SOUND_ID, { file: 'rejected.mp3' } ],
|
2018-05-21 20:52:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the sound file which will be played when the status of an
|
|
|
|
* outgoing call is ringing.
|
|
|
|
*/
|
|
|
|
[
|
|
|
|
OUTGOING_CALL_RINGING_SOUND_ID,
|
|
|
|
{
|
2022-11-10 16:06:40 +00:00
|
|
|
file: 'outgoingRinging.mp3',
|
2018-05-21 20:52:30 +00:00
|
|
|
options: { loop: true }
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the sound file which will be played when outgoing call is
|
|
|
|
* started.
|
|
|
|
*/
|
2022-11-10 16:06:40 +00:00
|
|
|
[ OUTGOING_CALL_START_SOUND_ID, { file: 'outgoingStart.mp3' } ]
|
2018-05-21 20:52:30 +00:00
|
|
|
]);
|