Proper call requests for callee
This commit is contained in:
parent
e9957ac12f
commit
333dc17c0a
6 changed files with 54 additions and 93 deletions
|
@ -1,3 +1,5 @@
|
|||
import { CallState } from 'ringrtc';
|
||||
|
||||
// Must be kept in sync with RingRTC.AudioDevice
|
||||
export interface AudioDevice {
|
||||
// Device name.
|
||||
|
@ -10,15 +12,6 @@ export interface AudioDevice {
|
|||
i18nKey?: string;
|
||||
}
|
||||
|
||||
// This must be kept in sync with RingRTC.CallState.
|
||||
export enum CallState {
|
||||
Prering = 'init',
|
||||
Ringing = 'ringing',
|
||||
Accepted = 'connected',
|
||||
Reconnecting = 'connecting',
|
||||
Ended = 'ended',
|
||||
}
|
||||
|
||||
export enum CallingDeviceType {
|
||||
CAMERA,
|
||||
MICROPHONE,
|
||||
|
@ -46,3 +39,5 @@ export type ChangeIODevicePayloadType =
|
|||
| { type: CallingDeviceType.CAMERA; selectedDevice: string }
|
||||
| { type: CallingDeviceType.MICROPHONE; selectedDevice: AudioDevice }
|
||||
| { type: CallingDeviceType.SPEAKER; selectedDevice: AudioDevice };
|
||||
|
||||
export { CallState };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue