VICallDelegate

Delegate that may be used to handle call events.

Members
–  call:didFailWithError:headers:

Triggered if the call is failed.

- (void)call:(VICall *)call didFailWithError:(NSError *)error headers:(NSDictionary *)headers
Parameters
call

Call that triggered the event

error

Error that contains status code and status message of the call failure

headers

Optional headers passed with event

–  call:didConnectWithHeaders:

Triggered after call was successfully connected.

- (void)call:(VICall *)call didConnectWithHeaders:(NSDictionary *)headers
Parameters
call

Call that triggered the event

headers

Optional headers passed with event

–  call:didDisconnectWithHeaders:answeredElsewhere:

Triggered after the call was disconnected.

- (void)call:(VICall *)call didDisconnectWithHeaders:(NSDictionary *)headers answeredElsewhere:(NSNumber *)answeredElsewhere
Parameters
call

Call that triggered the event

headers

Optional headers passed with event

answeredElsewhere

true if call was answered on another device

–  call:startRingingWithHeaders:

Triggered if the call is ringing. You should start playing call progress tone now.

- (void)call:(VICall *)call startRingingWithHeaders:(NSDictionary *)headers
Parameters
call

Call that triggered the event

headers

Optional headers passed with event

–  callDidStartAudio:

Triggered after audio is started in the call. You should stop playing progress tone when event is received

- (void)callDidStartAudio:(VICall *)call
Parameters
call

Call that triggered the event

–  call:didReceiveMessage:headers:

Triggered when message is received within the call. Implemented atop SIP INFO for communication between call endpoint and Voximplant cloud, and is separated from Voximplant messaging API.

- (void)call:(VICall *)call didReceiveMessage:(NSString *)message headers:(NSDictionary *)headers
Parameters
call

Call that triggered the event

message

Content of the message

headers

Optional headers passed with event

–  call:didReceiveInfo:type:headers:

Triggered when INFO message is received within the call.

- (void)call:(VICall *)call didReceiveInfo:(NSString *)body type:(NSString *)type headers:(NSDictionary *)headers
Parameters
call

Call that triggered the event

body

Body of INFO message

type

MIME type of INFO message

headers

Optional headers passed with event

–  call:didReceiveStatistics:

Triggered when call statistics are available for the call.

- (void)call:(VICall *)call didReceiveStatistics:(VICallStat *)stat
Parameters
call

Call that triggered the event

stat

Call statistics

–  call:didAddLocalVideoStream:

Triggered when local video stream is added to the call. The event is triggered on the main thread.

- (void)call:(VICall *)call didAddLocalVideoStream:(VIVideoStream *)videoStream
Parameters
call

Call that triggered the event

videoStream

Local video stream that is added to the call

–  call:didRemoveLocalVideoStream:

Triggered when local video stream is removed from the call. The event is triggered on the main thread.

- (void)call:(VICall *)call didRemoveLocalVideoStream:(VIVideoStream *)videoStream
Parameters
call

Call that triggered the event

videoStream

Local video stream that is removed to the call

–  iceCompleteForCall:

Triggered when ICE connection is complete

- (void)iceCompleteForCall:(VICall *)call
Parameters
call

Call that triggered the event

–  iceTimeoutForCall:

Triggered if connection was not established due to network connection problem between 2 peers

- (void)iceTimeoutForCall:(VICall *)call
Parameters
call

Call that triggered the event