TVILocalVideoTrack Class Reference

Inherits from TVIVideoTrack : TVITrack : NSObject
Declared in TVIVideoTrack.h

Overview

TVILocalVideoTrack represents local video produced by a TVIVideoCapturer.

  enabled

Indicates if track is enabled.

@property (nonatomic, assign, getter=isEnabled) BOOL enabled

Declared In

TVIVideoTrack.h

  capturer

The capturer that is associated with this track.

@property (nonatomic, strong, readonly, nonnull) id<TVIVideoCapturer> capturer

Declared In

TVIVideoTrack.h

  constraints

The video constraints.

@property (nonatomic, strong, readonly, nonnull) TVIVideoConstraints *constraints

Declared In

TVIVideoTrack.h

– init

Developers shouldn’t initialize this class directly.

- (null_unspecified instancetype)init

Discussion

Tracks cannot be created explicitly

Declared In

TVIVideoTrack.h

+ trackWithCapturer:

Creates a TVILocalVideoTrack with a TVIVideoCapturer.

+ (nullable instancetype)trackWithCapturer:(nonnull id<TVIVideoCapturer>)capturer

Parameters

capturer

A TVIVideoCapturer which will provide the content for this Track.

Return Value

A Track which is ready to be shared with Participants in a Room, or nil if an error occurs.

Discussion

This method allows you to provide a TVIVideoCapturer, and uses the default TVIVideoConstraints.

Declared In

TVIVideoTrack.h

+ trackWithCapturer:enabled:constraints:

Creates a TVILocalVideoTrack with a TVIVideoCapturer, TVIVideoConstraints and an enabled setting.

+ (nullable instancetype)trackWithCapturer:(nonnull id<TVIVideoCapturer>)capturer enabled:(BOOL)enabled constraints:(nullable TVIVideoConstraints *)constraints

Parameters

capturer

A TVIVideoCapturer which will provide the content for this Track.

enabled

Determines if the Track is enabled at creation time.

constraints

A TVIVideoConstraints which specifies requirements for video capture.

Return Value

A Track which is ready to be shared with Participants in a Room, or nil if an error occurs.

Discussion

This method allows you to provide specific TVIVideoConstraints, and produce a disabled Track if you wish.

Declared In

TVIVideoTrack.h