mirror of https://github.com/jitsi/jitsi-meet
Outgoing call ringtones (#2949)
* fix(PresenceLabel): Use translated strings for the presence label. * feat(sounds): Implements loop and stop functionality. * feat(invite): Add ringtones. * fix(invite): Code style issues.pull/2968/merge jitsi-meet_3052
parent
ee74f11c3d
commit
c344a83376
@ -0,0 +1,14 @@ |
|||||||
|
/** |
||||||
|
* The identifier of the sound to be played when the status of an outgoing call |
||||||
|
* is ringing. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const OUTGOING_CALL_RINGING_SOUND_ID = 'OUTGOING_CALL_RINGING_SOUND_ID'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The identifier of the sound to be played when outgoing call is started. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const OUTGOING_CALL_START_SOUND_ID = 'OUTGOING_CALL_START_SOUND_ID'; |
@ -0,0 +1,11 @@ |
|||||||
|
/** |
||||||
|
* The name of the sound file which will be played when the status of an |
||||||
|
* outgoing call is ringing. |
||||||
|
*/ |
||||||
|
export const OUTGOING_CALL_RINGING_FILE = 'outgoingRinging.wav'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The name of the sound file which will be played when outgoing call is |
||||||
|
* started. |
||||||
|
*/ |
||||||
|
export const OUTGOING_CALL_START_FILE = 'outgoingStart.wav'; |
@ -0,0 +1,70 @@ |
|||||||
|
/** |
||||||
|
* Тhe status for a participant when it's invited to a conference. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const INVITED = 'Invited'; |
||||||
|
|
||||||
|
/** |
||||||
|
* Тhe status for a participant when a call has been initiated. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const CALLING = 'Calling'; |
||||||
|
|
||||||
|
/** |
||||||
|
* Тhe status for a participant when the invite is received and its device(s) |
||||||
|
* are ringing. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const RINGING = 'Ringing'; |
||||||
|
|
||||||
|
/** |
||||||
|
* A status for a participant that indicates the call is connected. |
||||||
|
* NOTE: Currently used for phone numbers only. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const CONNECTED = 'Connected'; |
||||||
|
|
||||||
|
/** |
||||||
|
* A status for a participant that indicates the call is in process of |
||||||
|
* connecting. |
||||||
|
* NOTE: Currently used for phone numbers only. |
||||||
|
* |
||||||
|
* @type {string} |
||||||
|
*/ |
||||||
|
export const CONNECTING = 'Connecting'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The status for a participant when the invitation is received but the user |
||||||
|
* has responded with busy message. |
||||||
|
*/ |
||||||
|
export const BUSY = 'Busy'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The status for a participant when the invitation is rejected. |
||||||
|
*/ |
||||||
|
export const REJECTED = 'Rejected'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The status for a participant when the invitation is ignored. |
||||||
|
*/ |
||||||
|
export const IGNORED = 'Ignored'; |
||||||
|
|
||||||
|
/** |
||||||
|
* Maps the presence status values to i18n translation keys. |
||||||
|
* |
||||||
|
* @type {Object<String, String>} |
||||||
|
*/ |
||||||
|
export const STATUS_TO_I18N_KEY = { |
||||||
|
'Invited': 'presenceStatus.invited', |
||||||
|
'Ringing': 'presenceStatus.ringing', |
||||||
|
'Calling': 'presenceStatus.calling', |
||||||
|
'Connected': 'presenceStatus.connected', |
||||||
|
'Connecting': 'presenceStatus.connecting', |
||||||
|
'Busy': 'presenceStatus.busy', |
||||||
|
'Rejected': 'presenceStatus.rejected', |
||||||
|
'Ignored': 'presenceStatus.ignored' |
||||||
|
}; |
@ -1 +1,2 @@ |
|||||||
export * from './components'; |
export * from './components'; |
||||||
|
export * from './constants'; |
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue