LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TXTrackInfo

Data Structures

class  TXTrackInfo
 

Enumerations

enum  TX_VOD_MEDIA_TRACK_TYPE : NSInteger
 

Detailed Description

Track details.


Data Structure Documentation

◆ TXTrackInfo

class TXTrackInfo
+ Inheritance diagram for TXTrackInfo:

Instance Methods

(int) - getTrackIndex
 
(TX_VOD_MEDIA_TRACK_TYPE- getTrackType
 
(NSString *) - getTrackName
 
(bool) - isEqual:
 

Properties

TX_VOD_MEDIA_TRACK_TYPE trackType
 
int trackIndex
 
NSString * name
 
bool isSelected
 
bool isExclusive
 
bool isInternal
 

Method Documentation

◆ getTrackIndex()

- (int) getTrackIndex

Get track index

Returns
track index

◆ getTrackName()

- (NSString *) getTrackName

Get the name of the track

Returns
track name

◆ getTrackType()

- (TX_VOD_MEDIA_TRACK_TYPE) getTrackType

Get track type

Returns
Get track type (type can refer to 'TX_VOD_MEDIA_TRACK_TYPE' )

◆ isEqual:()

- (bool) isEqual: (TXTrackInfo *)  trackInfo

Are the tracks the same

Parameters
trackInfothe orbital objects to compare
Returns
YES means same, NO means different

Property Documentation

◆ isExclusive

- (bool) isExclusive
readwritenonatomicassign

If true, only one track of this type can be selected at each moment, if false, multiple tracks of this type can be selected at the same time.

◆ isInternal

- (bool) isInternal
readwritenonatomicassign

Whether the current track is an internal original track.

◆ isSelected

- (bool) isSelected
readwritenonatomicassign

Whether the current track is selected

◆ name

- (NSString*) name
readwritenonatomiccopy

Track name

◆ trackIndex

- (int) trackIndex
readwritenonatomicassign

Track index

◆ trackType

- (TX_VOD_MEDIA_TRACK_TYPE) trackType
readwritenonatomicassign

track information (refer to 'TX_VOD_MEDIA_TRACK_TYPE' )

Enumeration Type Documentation

◆ TX_VOD_MEDIA_TRACK_TYPE

enum TX_VOD_MEDIA_TRACK_TYPE : NSInteger

Player Type Definition

Enumerator
TX_VOD_MEDIA_TRACK_TYPE_UNKNOW 

Unknown.

TX_VOD_MEDIA_TRACK_TYPE_VIDEO 

Video track.

TX_VOD_MEDIA_TRACK_TYPE_AUDIO 

Audio track.

TX_VOD_MEDIA_TRACK_TYPE_SUBTITLE 

Subtitle track.