TVIAudioTrack Class Reference

Inherits from TVITrack : NSObject
Declared in TVIAudioTrack.h

Overview

TVIAudioTrack represents a local or remote audio track.

– init

Developers shouldn’t initialize this class directly.

- (null_unspecified instancetype)init

Discussion

Tracks cannot be created explicitly.

Declared In

TVIAudioTrack.h

  sinks

An array of sinks that are currently attached to the TVIAudioTrack.

@property (nonatomic, strong, readonly, nonnull) NSArray<id<TVIAudioSink> > *sinks

Discussion

Note: Use the ‘addSink:’ and ‘removeSink:’ methods to manipulate this collection.

Declared In

TVIAudioTrack.h

– addSink:

Adds a sink to the Track.

- (void)addSink:(nonnull id<TVIAudioSink>)sink

Parameters

sink

An object or Swift struct that implements the TVIAudioSink protocol.

Discussion

Sinks consume raw audio samples for further processing or storage.

Declared In

TVIAudioTrack.h

– removeSink:

Removes a sink from the Track.

- (void)removeSink:(nonnull id<TVIAudioSink>)sink

Parameters

sink

An object or Swift struct that implements the TVIAudioSink protocol.

Declared In

TVIAudioTrack.h