public class TrackInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TrackInfo.Type
Track types
|
Modifier and Type | Field and Description |
---|---|
static int |
AUTO_SELECT_INDEX
The index of automatic bitrate switchover.
|
Constructor and Description |
---|
TrackInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getAudioChannels()
Query the number of channels of the audio stream.
|
java.lang.String |
getAudioLang()
Query the language of the audio stream.
|
int |
getAudioSampleFormat()
Query the sampling format of the audio stream.
|
int |
getAudioSampleRate()
Query the sampling rate of the audio stream.
|
java.lang.String |
getDescription()
Query the description of the stream.
|
int |
getIndex()
Query the index of the stream.
|
java.lang.String |
getSubtitleLang()
Query the language of the subtitle stream.
|
TrackInfo.Type |
getType()
Query the type of the stream.
|
int |
getVideoBitrate()
Query the bitrate of the video stream.
|
int |
getVideoHeight()
Query the height of the video stream.
|
int |
getVideoWidth()
Query the width of the video stream.
|
java.lang.String |
getVodDefinition()
Query the definition of the VOD stream.
|
int |
getVodFileSize()
Query the size of the VOD file.
|
java.lang.String |
getVodFormat()
Query the format of the media.
|
java.lang.String |
getVodPlayUrl()
Query the playback URL.
|
java.lang.String |
getVodWaterMarkPlayUrl()
Query the playback URL of the media with a watermark added.
|
public static final int AUTO_SELECT_INDEX
public java.lang.String getVodPlayUrl()
getType()
= TrackInfo.Type.TYPE_VOD
, this value is valid.public java.lang.String getVodFormat()
getType()
= TrackInfo.Type.TYPE_VOD
, this value is valid.public java.lang.String getVodWaterMarkPlayUrl()
getType()
= TrackInfo.Type.TYPE_VOD
, this value is valid.public int getIndex()
public TrackInfo.Type getType()
public int getVideoBitrate()
getType()
= TrackInfo.Type.TYPE_VIDEO
, this value is valid.public int getVideoWidth()
getType()
= TrackInfo.Type.TYPE_VIDEO
, this value is valid.public int getVideoHeight()
getType()
= TrackInfo.Type.TYPE_VIDEO
, this value is valid.public java.lang.String getAudioLang()
getType()
= TrackInfo.Type.TYPE_AUDIO
, this value is valid.public int getAudioChannels()
getType()
= TrackInfo.Type.TYPE_AUDIO
, this value is valid.public int getAudioSampleRate()
getType()
= TrackInfo.Type.TYPE_AUDIO
, this value is valid.public int getAudioSampleFormat()
getType()
= TrackInfo.Type.TYPE_AUDIO
, this value is valid.public java.lang.String getSubtitleLang()
getType()
= TrackInfo.Type.TYPE_SUBTITLE
, this value is valid.public java.lang.String getDescription()
public java.lang.String getVodDefinition()
getType()
= TrackInfo.Type.TYPE_VOD
, this value is valid.public int getVodFileSize()
getType()
= TrackInfo.Type.TYPE_VOD
, this value is valid.