Proper call requests for callee

This commit is contained in:
Evan Hahn 2020-09-28 14:02:35 -05:00 committed by Josh Perez
parent e9957ac12f
commit 333dc17c0a
6 changed files with 54 additions and 93 deletions

View file

@ -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 };