VIRemoteVideoStream
VoximplantCalls · iOS SDK v3
Class that represents a remote video stream.
@objc final class VIRemoteVideoStream
Properties
description
override var description: String { get }
Stream description.
id
var id: String { get }
Remote video stream id.
isReceiving
@objc var isReceiving: Bool { get }
Whether the video stream is receiving video.
Valid only for conferences.
renderers
var renderers: [VIVideoRenderer] { get }
Array of video renderers that are currently rendering the video stream.
size
var size: CGSize { get }
Width and height of a remote video frame.
type
var type: VIVideoStreamType { get }
Remote video stream type.
Methods
addRenderer(_:completion:)
func addRenderer(_ renderer: VIVideoRenderer, completion: @escaping (VIVideoSourceError?) -> Void)
Adds a new video renderer to the video stream.
Parameters
renderer VIVideoRenderer
Video renderer. Must be the instance of VIVideoRendererUIView.
completion @escaping (VIVideoSourceError?) -> Void
Completion handler to call when the operation is complete. This handler is executed on the main queue. The SDK passes the VIVideoSourceError object if the operation has failed.
It is recommended to call this method on the main queue.
isEqual(_:)
override func isEqual(_ object: Any?) -> Bool
removeAllRenderers()
func removeAllRenderers()
Removes all video renderers associated with the video stream.
It is recommended to call this method on the main queue.
removeRenderer(_:)
func removeRenderer(_ renderer: VIVideoRenderer)
Removes the previously added video renderer from the video stream.
Parameters
renderer VIVideoRenderer
Video renderer
It is recommended to call this method on the main queue.
Relationships
Inherits From: NSObject
Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable, VIVideoStream