public static class Player.StreamInfo extends Object
Player.getStreamInfo()| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
MEDIA_STREAM_TYPE_AUDIO |
Indicates the audio stream.
|
static int |
MEDIA_STREAM_TYPE_METADATA |
Indicates the metadata stream.
|
static int |
MEDIA_STREAM_TYPE_SUBTITLE |
Indicates the subtitle stream.
|
static int |
MEDIA_STREAM_TYPE_TIMEDTEXT |
Indicates the timed text stream.
|
static int |
MEDIA_STREAM_TYPE_UNKNOWN |
Indicates an unknown media stream type.
|
static int |
MEDIA_STREAM_TYPE_VIDEO |
Indicates the video stream.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Format |
getStreamFormat() |
Obtains the format information of the current media stream.
|
int |
getStreamType() |
Obtains the type of the current media stream.
|
String |
toString() |
Returns a string representation of this
StreamInfo object. |
public static final int MEDIA_STREAM_TYPE_AUDIO
public static final int MEDIA_STREAM_TYPE_METADATA
public static final int MEDIA_STREAM_TYPE_SUBTITLE
public static final int MEDIA_STREAM_TYPE_TIMEDTEXT
public static final int MEDIA_STREAM_TYPE_UNKNOWN
public static final int MEDIA_STREAM_TYPE_VIDEO
public int getStreamType()
MEDIA_STREAM_TYPE_UNKNOWN,
MEDIA_STREAM_TYPE_VIDEO,
MEDIA_STREAM_TYPE_AUDIO,
MEDIA_STREAM_TYPE_TIMEDTEXT,
MEDIA_STREAM_TYPE_SUBTITLE, or MEDIA_STREAM_TYPE_METADATA.public Format getStreamFormat()
null if the format is unknown or cannot be determined.