public class TrackInfo
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
TrackInfo.Type
Track types
|
static class |
TrackInfo.VideoHDRType |
限定符和类型 | 字段和说明 |
---|---|
int |
audioChannels |
java.lang.String |
audioLang |
int |
audioSampleFormat |
int |
audioSampleRate |
static int |
AUTO_SELECT_INDEX
The index of automatic bitrate switchover.
|
java.lang.String |
description |
int |
index |
TrackInfo.Type |
mType |
java.lang.String |
subtitleLang |
int |
videoBitrate |
TrackInfo.VideoHDRType |
videoHDRType |
int |
videoHeight |
int |
videoWidth |
java.lang.String |
vodDefinition |
long |
vodFileSize |
java.lang.String |
vodFormat |
java.lang.String |
vodPlayUrl |
java.lang.String |
vodWaterMarkPlayUrl |
构造器和说明 |
---|
TrackInfo() |
限定符和类型 | 方法和说明 |
---|---|
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 |
getVideoHDRType() |
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.
|
long |
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.
|
void |
setVideoHDRType(int type) |
public static final int AUTO_SELECT_INDEX
public int index
public TrackInfo.Type mType
public java.lang.String description
public int videoBitrate
public int videoWidth
public int videoHeight
public TrackInfo.VideoHDRType videoHDRType
public java.lang.String audioLang
public int audioChannels
public int audioSampleRate
public int audioSampleFormat
public java.lang.String subtitleLang
public java.lang.String vodDefinition
public long vodFileSize
public java.lang.String vodPlayUrl
public java.lang.String vodWaterMarkPlayUrl
public java.lang.String vodFormat
public void setVideoHDRType(int type)
public int getVideoHDRType()
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 long getVodFileSize()
getType()
= TrackInfo.Type.TYPE_VOD
, this value is valid.