tencent cloud

TXTrackInfo
Last updated: 2025-05-30 15:09:27
TXTrackInfo
Last updated: 2025-05-30 15:09:27

TXTrackInfo Overview

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

API Detail

Parameter Name
Type
Description
trackIndex
int
Track index.
trackType
int
track type. Valid values:
TXTrackInfo#TX_VOD_MEDIA_TRACK_TYPE_VIDEO: Video track.
TXTrackInfo#TX_VOD_MEDIA_TRACK_TYPE_AUDIO: Audio track.
TXTrackInfo#TX_VOD_MEDIA_TRACK_TYPE_SUBTITLE: Subtitle track.
name
String
Track name.
isSelected
boolean
Whether the current track is selected.
isExclusive
boolean
If it is true, only one track of this type can be selected at any given moment. If it is false, multiple tracks of this type can be selected simultaneously.
isInternal
boolean
Whether the current track is an internal primitive track.

getTrackIndex

Retrieve the track index.
public int getTrackIndex()

getTrackType

Retrieve the track type.
public int getTrackType()

getName

Retrieve the track name.
public int getName()

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

Feedback