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

# VILocalVideoStream

Class that represents a local video stream.

@objc final class VILocalVideoStream

## Initializers

### init(videoSource:)

@objc init?(videoSource: [VILocalVideoSource](/api-reference/iossdk/calls/vilocalvideosource))

Creates the local video stream instance with the provided video source.

**Parameters**

**videoSource** [VILocalVideoSource](/api-reference/iossdk/calls/vilocalvideosource)

Video source for the local video stream.

## Properties

### description

override var description: String \{ get }

Stream description.

### id

let id: String

Local video stream id.

### renderers

var renderers: \[[VIVideoRenderer](/api-reference/iossdk/calls/vivideorenderer)] \{ get }

Array of video renderers that are currently rendering the video stream.

### size

var size: CGSize \{ get }

Width and height of a captured video frame.

### source

@objc let source: [VILocalVideoSource](/api-reference/iossdk/calls/vilocalvideosource)

Local video stream source.

### type

let type: [VIVideoStreamType](/api-reference/iossdk/calls/vivideostreamtype)

Local video stream type.

## Methods

### addRenderer(\_:completion:)

func addRenderer(\_ renderer: [VIVideoRenderer](/api-reference/iossdk/calls/vivideorenderer), completion: @escaping ([VIVideoSourceError](/api-reference/iossdk/calls/vivideosourceerror)?) -> Void)

Adds a new video renderer to the video stream.

**Parameters**

**renderer** [VIVideoRenderer](/api-reference/iossdk/calls/vivideorenderer)

Video renderer. Must be the instance of [VIVideoRendererUIView](/api-reference/iossdk/calls/vivideorendereruiview).

**completion** @escaping ([VIVideoSourceError](/api-reference/iossdk/calls/vivideosourceerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the main queue. The SDK passes the [VIVideoSourceError](/api-reference/iossdk/calls/vivideosourceerror) object if the operation has failed.

It is recommended to call this method on the main queue and when the application is in the foreground.

### 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](/api-reference/iossdk/calls/vivideorenderer))

Removes the previously added video renderer from the video stream.

**Parameters**

**renderer** [VIVideoRenderer](/api-reference/iossdk/calls/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](/api-reference/iossdk/calls/vivideostream)