TVIVideoTrack Class Reference
Inherits from | TVITrack : NSObject |
---|---|
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
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 |
---|
Discussion
Calling addRenderer
multiple times with the same renderer will result in an NSInvalidArgumentException.
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 |
---|
Declared In
TVIVideoTrack.h