TVOCallDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TVOCallDelegate.h |
Required Methods
– callDidConnect:
required method
– call:didFailToConnectWithError:
required method
– call:didDisconnectWithError:
required method
Notifies the delegate that a Call has disconnected.
- (void)call:(nonnull TVOCall *)call didDisconnectWithError:(nullable NSError *)error
Parameters
call |
The |
---|---|
error |
An |
See Also
Declared In
TVOCallDelegate.h
Optional Methods
– callDidStartRinging:
Notifies the delegate that the called party is being alerted of a Call.
- (void)callDidStartRinging:(nonnull TVOCall *)call
Parameters
call |
The |
---|
Discussion
This callback is invoked once before the [TVOCallDelegate callDidConnect:]
callback. If
the answerOnBridge
is true
this represents the callee is being alerted of a Call.
See Also
Declared In
TVOCallDelegate.h
– call:isReconnectingWithError:
Notifies the delegate that a Call starts to reconnect due to network change event.
- (void)call:(nonnull TVOCall *)call isReconnectingWithError:(nonnull NSError *)error
Parameters
call |
The |
---|---|
error |
The |
Discussion
Reconnect is triggered when a network change is detected and Call is already in TVOCallStateConnected
state.
If the call is either in TVOCallStateConnecting
or in TVOCallStateRinging
when network change happened
then the current call will disconnect.
See Also
Declared In
TVOCallDelegate.h
– call:didReceiveQualityWarnings:previousWarnings:
Notifies the delegate that network quality warnings have changed for the Call.
- (void)call:(nonnull TVOCall *)call didReceiveQualityWarnings:(nonnull NSSet<NSNumber*> *)currentWarnings previousWarnings:(nonnull NSSet<NSNumber*> *)previousWarnings
Parameters
call |
The |
---|---|
currentWarnings |
An |
previousWarnings |
An |
Discussion
The trigger conditions for the warnings defined in the TVOCallQualityWarning
enumeration are defined as follows:
TVOCallQualityWarningHighRtt
- Round Trip Time (RTT) > 400 ms for 3 out of last 5 samples.TVOCallQualityWarningHighJitter
- Jitter > 30 ms for 3 out of last 5 samples.TVOCallQualityWarningHighPacketsLostFraction
- Raised when average packet loss > 3% in last 7 samples. Cleared when average packet loss <= 1% in last 7 samples.TVOCallQualityWarningLowMos
- Mean Opinion Score (MOS) < 3.5 for 3 out of last 5 samples.TVOCallQualityWarningConstantAudioInputLevel
- Raised when the standard deviation of audio input levels for last 10 samples is less than or equals 1% of the maximum possible audio input level (32767) i.e. 327.67 and the call is not in the muted state. Cleared when the standard deviation of audio input levels for last 10 samples is greater than 3% of the maximum possible audio input level.
The two sets will help the delegate find out what warnings have changed since the last callback was received.
Declared In
TVOCallDelegate.h