tencent cloud

TXTrackInfo
Last updated: 2025-05-30 14:57:28
TXTrackInfo
Last updated: 2025-05-30 14:57:28

TXTrackInfo Overview

Detailed information about the track played by the on-demand player.

TX_VOD_MEDIA_TRACK_TYPE (Track Type)

Value
Parameter Name
Description
0
TX_VOD_MEDIA_TRACK_TYPE_UNKNOW
unknown type.
1
TX_VOD_MEDIA_TRACK_TYPE_VIDEO
video track.
2
TX_VOD_MEDIA_TRACK_TYPE_AUDIO
audio track.
3
TX_VOD_MEDIA_TRACK_TYPE_SUBTITLE
subtitle track.

API Detail

Parameter Name
Type
Description
int
Track index.
trackType
TX_VOD_MEDIA_TRACK_TYPE
track type.
name
NSString
Track name.
bool
Whether the current track is selected.
bool
If YES, only one track of this type can be selected at any given moment. If NO, multiple tracks of this type can be selected simultaneously.
bool
Whether the current track is an internal primitive track.
int
Retrieve track index.
TX_VOD_MEDIA_TRACK_TYPE
Retrieve track type.
NSString
Retrieve track name.
isEqual:
bool
Whether the tracks are the same.

trackType

Retrieve track type.
@property(nonatomic, assign) TX_VOD_MEDIA_TRACK_TYPE trackType;

trackIndex

Retrieve track index.
@property(nonatomic, assign) int trackIndex;

name

Retrieve track name.
@property(nonatomic, copy) NSString *name;

isSelected

Whether the current track is selected.
@property(nonatomic, assign) bool isSelected;

isExclusive

If YES, only one track of this type can be selected at the same time; if NO, multiple tracks of this type can be selected simultaneously.
@property(nonatomic, assign) bool isExclusive;

isInternal

Whether the current track is an internal primitive track.
@property(nonatomic, assign) bool isInternal;

getTrackIndex

Retrieve track index.
- (int)getTrackIndex;
Return Value
Track index, int.

getTrackType

Retrieve track type.
- (TX_VOD_MEDIA_TRACK_TYPE)getTrackType;
Return Value
Type
Description
Track type.

getTrackName

Retrieve track name.
- (NSString *)getTrackName;
Return Value
Track name, NSString.

isEqual:

Whether the tracks are the same.
- (bool)isEqual:(TXTrackInfo *)trackInfo;
Return Value
Whether the tracks are the same, BOOL. YES indicates the same, NO indicates different.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback