Skip to navigation

Endpoint (class)

Android SDK v3 API reference
View as Markdown

com.voximplant.android.sdk.calls

Class that represents a remote participant in a conference.

Methods

requestVideoSize

fun requestVideoSize(streamId: String, width: Int, height: Int): Unit

Requests the specified video size for the video stream.

The stream resolution may be changed to the closest to the specified width and height.

Parameters

ParameterTypeRequirementDescription
streamIdString
widthIntRequested width of the video stream
heightIntRequested height of the video stream

Returns: Unit

setEndpointListener

fun setEndpointListener(endpointListener: EndpointListener?): Unit

Sets the listener to be notified of the endpoint events.

Parameters

ParameterTypeRequirementDescription
endpointListenerEndpointListener?Listener to be notified of the endpoint events If null, previous listener is removed

Returns: Unit

startReceiveVideo

fun startReceiveVideo(streamId: String): Unit

Starts receiving video on the remote video stream.

If the video is already receiving, this method call is ignored.

If the request is processed successfully, EndpointListener.onStartReceivingVideoStream event is invoked.

Parameters

ParameterTypeRequirementDescription
streamIdString

Returns: Unit

stopReceiveVideo

fun stopReceiveVideo(streamId: String): Unit

Stops receiving video on the remote video stream.

If the request is processed successfully, EndpointListener.onStopReceivingVideoStream event is invoked with the VideoStreamReceiveStopReason.Manual reason

Parameters

ParameterTypeRequirementDescription
streamIdString

Returns: Unit

toString

fun toString(): String

Returns: String

Properties

audioStreams

val audioStreams: List<RemoteAudioStream>

All active audio streams of the endpoint.

Read-only.

displayName

val displayName: String?

Endpoint display name.

Read-only.

id

val id: String

Endpoint id.

Read-only.

isMuted

var isMuted: Boolean

Whether the endpoint’s microphone is muted.

isVoiceActivityDetected

var isVoiceActivityDetected: Boolean

Whether the endpoint is currently talking.

sipUri

val sipUri: String?

Endpoint SIP URI.

Read-only.

username

val username: String?

Endpoint username.

Read-only.

videoStreams

val videoStreams: List<RemoteVideoStream>

All active video streams of the endpoint.

Read-only.