> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIEndpointDelegate

Delegate to handle events of the remote participant in a conference.

@objc protocol VIEndpointDelegate

## Methods

### endpoint(\_:didAddRemoteVideoStream:)

@objc func endpoint(\
    \_ endpoint: [VIEndpoint](/api-reference/iossdk/calls/viendpoint),\
    didAddRemoteVideoStream videoStream: [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)\
)

Triggered after an endpoint has added a video stream.

**Parameters**

**endpoint** [VIEndpoint](/api-reference/iossdk/calls/viendpoint)

Endpoint instance

**videoStream** [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)

Remote video stream

### endpoint(\_:didChangeMuteStatus:)

@objc optional func endpoint(\_ endpoint: [VIEndpoint](/api-reference/iossdk/calls/viendpoint), didChangeMuteStatus muteStatus: Bool)

Triggered when an endpoint’s mute status is changed in a conference.

**Parameters**

**endpoint** [VIEndpoint](/api-reference/iossdk/calls/viendpoint)

Endpoint instance

**muteStatus** Bool

Whether the endpoint has muted its audio.

The event is triggered as the result of the [muteAudio(\_:completion:)](/api-reference/iossdk/calls/viconference#symbol-2f9d0fb5e9090c4b) API call on an endpoint client.

### endpoint(\_:didDetectVoiceActivityChange:)

@objc optional func endpoint(\
    \_ endpoint: [VIEndpoint](/api-reference/iossdk/calls/viendpoint),\
    didDetectVoiceActivityChange voiceActivity: Bool\
)

Triggered when an endpoint’s voice activity is detected or stopped in a conference.

**Parameters**

**endpoint** [VIEndpoint](/api-reference/iossdk/calls/viendpoint)

Endpoint instance

**voiceActivity** Bool

Whether the endpoint is currently talking

### endpoint(\_:didRemoveRemoteVideoStream:)

@objc func endpoint(\
    \_ endpoint: [VIEndpoint](/api-reference/iossdk/calls/viendpoint),\
    didRemoveRemoteVideoStream videoStream: [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)\
)

Triggered after an endpoint has removed a video stream.

**Parameters**

**endpoint** [VIEndpoint](/api-reference/iossdk/calls/viendpoint)

Endpoint instance

**videoStream** [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)

Remote video stream

### endpoint(\_:didStartReceivingVideoStream:)

@objc optional func endpoint(\
    \_ endpoint: [VIEndpoint](/api-reference/iossdk/calls/viendpoint),\
    didStartReceivingVideoStream videoStream: [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)\
)

Triggered when receiving video on a remote video stream is started after previously being stopped.

**Parameters**

**endpoint** [VIEndpoint](/api-reference/iossdk/calls/viendpoint)

Endpoint instance

**videoStream** [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)

Remote video stream

The event is triggered if:

* [startReceiving(from:)](/api-reference/iossdk/calls/viendpoint#symbol-aad924f925254f3c) 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-reference/iossdk/calls/viconference#symbol-421f34c0c134b729) API.

### endpoint(\_:didStopReceivingVideoStream:reason:)

@objc optional func endpoint(\
    \_ endpoint: [VIEndpoint](/api-reference/iossdk/calls/viendpoint),\
    didStopReceivingVideoStream videoStream: [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream),\
    reason: [VIVideoStreamReceiveStopReason](/api-reference/iossdk/calls/vivideostreamreceivestopreason)\
)

Triggered when receiving video on a remote video stream is stopped.

**Parameters**

**endpoint** [VIEndpoint](/api-reference/iossdk/calls/viendpoint)

Endpoint instance

**videoStream** [VIRemoteVideoStream](/api-reference/iossdk/calls/viremotevideostream)

Remote video stream where receiving video is stopped

**reason** [VIVideoStreamReceiveStopReason](/api-reference/iossdk/calls/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:)](/api-reference/iossdk/calls/viendpoint#symbol-04e195883e8481dd) has been called and the request has been processed successfully. In this case the value of the “reason” parameter is [VIVideoStreamReceiveStopReason.manual](/api-reference/iossdk/calls/vivideostreamreceivestopreason#symbol-3503d80d179f2914).
* 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](/api-reference/iossdk/calls/vivideostreamreceivestopreason#symbol-a39d774f777b2180).

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:)](/api-reference/iossdk/calls/viendpointdelegate#symbol-ba5eedb19bdd4849) event is invoked.

The event is not triggered if the endpoint client has stopped sending video via the [stopSendingVideo(completion:)](/api-reference/iossdk/calls/viconference#symbol-ab7e6ae657dea783) API.