VIEndpoint
VoximplantCalls · iOS SDK v3
Class that represents a remote participant in a conference.
@objc class VIEndpoint
Properties
delegate
@objc weak var delegate: VIEndpointDelegate?
Endpoint delegate.
id
@objc let id: String
Endpoint id.
isMuted
@objc var isMuted: Bool { get set }
Whether the endpoint is muted.
isVoiceActive
@objc var isVoiceActive: Bool { get set }
Whether the endpoint is currently talking.
remoteAudioStreams
@objc var remoteAudioStreams: [VIRemoteAudioStream] { get }
Array of the remote audio streams associated with the endpoint.
remoteVideoStreams
@objc var remoteVideoStreams: [VIRemoteVideoStream] { get }
Array of the remote video streams associated with the endpoint.
sipUri
@objc var sipUri: String? { get }
Endpoint SIP URI.
user
@objc var user: String? { get }
Endpoint user name.
userDisplayName
@objc var userDisplayName: String? { get }
Endpoint user display name.
Methods
requestVideoSize(_:for:completion:)
@objc func requestVideoSize(
_ size: CGSize,
for remoteVideoStream: VIRemoteVideoStream,
completion: ((VICallError?) -> Void)?
)
Requests the specified video size for a remote video stream.
Parameters
size CGSize
Requested size
remoteVideoStream VIRemoteVideoStream
Remote video stream
completion ((VICallError?) -> Void)?
Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.
The stream resolution may be changed to the closest to the specified width and height.
It only makes an impact if the endpoint has enabled simulcast feature.
startReceiving(from:)
@objc func startReceiving(from remoteVideoStream: VIRemoteVideoStream)
Starts receiving video on the remote video stream.
Parameters
remoteVideoStream VIRemoteVideoStream
Remote video stream
If the video is already receiving, this method call is ignored.
If the request is processed successfully, the endpoint(_:didStartReceivingVideoStream:) event is triggered.
stopReceiving(from:)
@objc func stopReceiving(from remoteVideoStream: VIRemoteVideoStream)
Stops receiving video on the remote video stream.
Parameters
remoteVideoStream VIRemoteVideoStream
Remote video stream
If the request is processed successfully, the endpoint(_:didStopReceivingVideoStream:reason:) event is triggered with the VIVideoStreamReceiveStopReason.manual reason.
Relationships
Inherits From: NSObject
Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable