TVIVideoTrack Class Reference

Inherits from TVITrack : NSObject
Declared in TVIVideoTrack.h

Overview

TVIVideoTrack represents video, and provides an interface to render frames from the track.

– init

Developers shouldn’t initialize this class directly.

- (null_unspecified instancetype)init

Discussion

Tracks cannot be created explicitly.

Declared In

TVIVideoTrack.h

  renderers

An array of renderers that are currently attached to the video track.

@property (nonatomic, strong, readonly, nonnull) NSArray<id<TVIVideoRenderer> > *renderers

Discussion

Note: Use the ‘addRenderer:’ and ‘removeRenderer:’ methods to manipulate this collection.

Declared In

TVIVideoTrack.h

– addRenderer:

Adds a renderer to the video track. Renderers provide fine control over how video is displayed.

- (void)addRenderer:(nonnull id<TVIVideoRenderer>)renderer

Parameters

renderer

An object or swift struct that implements the TVIVideoRenderer protocol.

Declared In

TVIVideoTrack.h

– removeRenderer:

Removes a renderer from the video track.

- (void)removeRenderer:(nonnull id<TVIVideoRenderer>)renderer

Parameters

renderer

An object or swift struct that implements the TVIVideoRenderer protocol.

Declared In

TVIVideoTrack.h