StringeeCallListener class
Represents the event from the StringeeCall.
Constructors
StringeeCallListener()
Create a new StringeeCallListener.
Methods
onChangeSignalingState: (stringeeCall: StringeeCall, signalingState: SignalingState, reason: string, sipCode: number, sipReason: string) => void
Invoked when the call's signaling state changes.
- signalingState: The signaling state of the call:
- calling.
- ringing.
- answered.
- ended.
- busy.
- reason: The description of the state.
- sipCode: The sip code returned when the call is an app-to-phone call.
- sipReason: The description of sip code.
onChangeMediaState: (stringeeCall: StringeeCall, mediaState: MediaState, description: string) => void
Invoked when the call's media state changes.
- mediaState: The media state of the call:
- connected: Used to specify the call media is connected.
- disconnected: Used to specify the call media is disconnected.
- description: The description of the state.
onReceiveCallInfo: (stringeeCall: StringeeCall, callInfo: string) => void
Invoked when receive call info.
- callInfo: Data received in JSON string format.
onReceiveDtmfDigit: (stringeeCall: StringeeCall, dtmf: string) => void
Invoked when the call receives a DTMF.
- dtmf: DTMF code ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", #)
onHandleOnAnotherDevice: (stringeeCall: StringeeCall, signalingState: SignalingState, reason: string) => void
Invoked when an incoming call is handle on another device.
- signalingState: The signaling state of the call:
- calling.
- ringing.
- answered.
- ended.
- busy.
- reason: The description of the state.
onReceiveLocalStream: (stringeeCall: StringeeCall) => void
Invoked when local stream in video call is ready to play.
onReceiveRemoteStream: (stringeeCall: StringeeCall) => void
Invoked when remote stream in video call is ready to play.
onAudioDeviceChange: (stringeeCall: StringeeCall, selectedAudioDevice: AudioDevice, availableAudioDevices: Array<AudioDevice>) => void
Invoked when the current audio device changes in android.
- availableAudioDevices: List available audio devices on your android device.
- selectedAudioDevice: Audio device was selected:
- speakerPhone : Speaker phone.
- wiredHeadset : Wired headset.
- earpiece : Earpiece.
- bluetooth : Bluetooth headphone.
- none : None device selected.