VIEndpointDelegate
VoximplantCalls · iOS SDK v3
Delegate to handle events of the remote participant in a conference.
@objc protocol VIEndpointDelegate
Methods
endpoint(_:didAddRemoteVideoStream:)
@objc func endpoint(
_ endpoint: VIEndpoint,
didAddRemoteVideoStream videoStream: VIRemoteVideoStream
)
Triggered after an endpoint has added a video stream.
Parameters
endpoint VIEndpoint
Endpoint instance
videoStream VIRemoteVideoStream
Remote video stream
endpoint(_:didChangeMuteStatus:)
@objc optional func endpoint(_ endpoint: VIEndpoint, didChangeMuteStatus muteStatus: Bool)
Triggered when an endpoint’s mute status is changed in a conference.
Parameters
endpoint VIEndpoint
Endpoint instance
muteStatus Bool
Whether the endpoint has muted its audio.
The event is triggered as the result of the muteAudio(_:completion:) API call on an endpoint client.
endpoint(_:didDetectVoiceActivityChange:)
@objc optional func endpoint(
_ endpoint: VIEndpoint,
didDetectVoiceActivityChange voiceActivity: Bool
)
Triggered when an endpoint’s voice activity is detected or stopped in a conference.
Parameters
endpoint VIEndpoint
Endpoint instance
voiceActivity Bool
Whether the endpoint is currently talking
endpoint(_:didRemoveRemoteVideoStream:)
@objc func endpoint(
_ endpoint: VIEndpoint,
didRemoveRemoteVideoStream videoStream: VIRemoteVideoStream
)
Triggered after an endpoint has removed a video stream.
Parameters
endpoint VIEndpoint
Endpoint instance
videoStream VIRemoteVideoStream
Remote video stream
endpoint(_:didStartReceivingVideoStream:)
@objc optional func endpoint(
_ endpoint: VIEndpoint,
didStartReceivingVideoStream videoStream: VIRemoteVideoStream
)
Triggered when receiving video on a remote video stream is started after previously being stopped.
Parameters
endpoint VIEndpoint
Endpoint instance
videoStream VIRemoteVideoStream
Remote video stream
The event is triggered if:
- startReceiving(from:) has been called and the request has been processed successfully.
- A network issue that caused the Voximplant Cloud to stop receiving video of the remote video stream is gone.
The event is not triggered if the endpoint client has started sending video via the startSendingVideo(with:completion:) API.
endpoint(_:didStopReceivingVideoStream:reason:)
@objc optional func endpoint(
_ endpoint: VIEndpoint,
didStopReceivingVideoStream videoStream: VIRemoteVideoStream,
reason: VIVideoStreamReceiveStopReason
)
Triggered when receiving video on a remote video stream is stopped.
Parameters
endpoint VIEndpoint
Endpoint instance
videoStream VIRemoteVideoStream
Remote video stream where receiving video is stopped
reason VIVideoStreamReceiveStopReason
Reason for the event, such as receiving video is disabled by the client or automatically
Receiving video on a remote video stream can be stopped due to:
- stopReceiving(from:) has been called and the request has been processed successfully. In this case the value of the “reason” parameter is VIVideoStreamReceiveStopReason.manual.
- Voximplant Cloud has detected a network issue on the client and automatically stopped the video. In this case the value of the “reason” parameter is VIVideoStreamReceiveStopReason.automatic.
If the receiving video is disabled automatically, it may be automatically enabled as soon as the network condition on the device is good and there is enough bandwidth to receive the video on this remote video stream. In this case endpoint(_:didStartReceivingVideoStream:) event is invoked.
The event is not triggered if the endpoint client has stopped sending video via the stopSendingVideo(completion:) API.