StringeeCall2Listener class
Represents the event from the StringeeCall2.
Constructors
StringeeCall2Listener()
Create a new StringeeCall2Listener.
Methods
onChangeSignalingState: (stringeeCall2: StringeeCall2, 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: (stringeeCall2: StringeeCall2, 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: (stringeeCall2: StringeeCall2, callInfo: string) => void
Invoked when receive call info.
- callInfo: Data received in JSON string format.
onReceiveDtmfDigit: (stringeeCall2: StringeeCall2, dtmf: string) => void
Invoked when the call receives a DTMF.
- dtmf: DTMF code ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", #)
onHandleOnAnotherDevice: (stringeeCall2: StringeeCall2, 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.
onReceiveLocalTrack: (stringeeCall2: StringeeCall2, stringeeVideoTrack: StringeeVideoTrack) => void
Invoked when the local track is initialized and available to be rendered to a view..
onReceiveRemoteTrack: (stringeeCall2: StringeeCall2, stringeeVideoTrack: StringeeVideoTrack) => void
Invoked when the remote track is initialized and available to be rendered to a view.
onTrackMediaStateChange: (stringeeCall2: StringeeCall2, from: string, mediaType: MediaType, enable: bool) => void
Invoked when receive track media state change event from other user.
- from: It's the identifier of user who send begin typing.
- mediaType: type of media change state.
- enable: state of media.
onAudioDeviceChange: (stringeeCall2: StringeeCall2, 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.