TVIMedia Class Reference

Inherits from NSObject
Declared in TVIMedia.h

Overview

TVIMedia is a collection of audio and video tracks shared by a remote Participant.

  audioTracks

A collection of shared audio tracks.

@property (nonatomic, copy, readonly, nonnull) NSArray<TVIAudioTrack*> *audioTracks

Declared In

TVIMedia.h

  videoTracks

A collection of shared video tracks.

@property (nonatomic, copy, readonly, nonnull) NSArray<TVIVideoTrack*> *videoTracks

Declared In

TVIMedia.h

– init

Developers shouldn’t initialize this class directly.

- (null_unspecified instancetype)init

Discussion

Use the media property on TVIParticipant.

Declared In

TVIMedia.h

– getTrack:

A utility method which gets a TVITrack by its id.

- (nullable TVITrack *)getTrack:(nonnull NSString *)trackId

Parameters

trackId

The track id.

Return Value

An instance of TVITrack if successful, or nil if not.

Declared In

TVIMedia.h

– getAudioTrack:

A utility method which gets a TVIAudioTrack by its id.

- (nullable TVIAudioTrack *)getAudioTrack:(nonnull NSString *)trackId

Parameters

trackId

The track id.

Return Value

An instance of TVIAudioTrack if successful, or nil if not.

Declared In

TVIMedia.h

– getVideoTrack:

A utility method which gets a TVIVideoTrack by its id.

- (nullable TVIVideoTrack *)getVideoTrack:(nonnull NSString *)trackId

Parameters

trackId

The track id.

Return Value

An instance of TVIVideoTrack if successful, or nil if not.

Declared In

TVIMedia.h