Methods Summary |
---|
public int | describeContents()
return 0;
|
public final int | getAudioChannelCount()Returns the audio channel count. Valid only for {@link #TYPE_AUDIO} tracks.
if (mType != TYPE_AUDIO) {
throw new IllegalStateException("Not an audio track");
}
return mAudioChannelCount;
|
public final int | getAudioSampleRate()Returns the audio sample rate, in the unit of Hz. Valid only for {@link #TYPE_AUDIO} tracks.
if (mType != TYPE_AUDIO) {
throw new IllegalStateException("Not an audio track");
}
return mAudioSampleRate;
|
public final android.os.Bundle | getExtra()Returns the extra information about the current track.
return mExtra;
|
public final java.lang.String | getId()Returns the ID of the track.
return mId;
|
public final java.lang.String | getLanguage()Returns the language information encoded by either ISO 639-1 or ISO 639-2/T. If the language
is unknown or could not be determined, the corresponding value will be {@code null}.
return mLanguage;
|
public final int | getType()Returns the type of the track. The type should be one of the followings:
{@link #TYPE_AUDIO}, {@link #TYPE_VIDEO} and {@link #TYPE_SUBTITLE}.
return mType;
|
public final float | getVideoFrameRate()Returns the frame rate of the video, in the unit of fps (frames per second). Valid only for
{@link #TYPE_VIDEO} tracks.
if (mType != TYPE_VIDEO) {
throw new IllegalStateException("Not a video track");
}
return mVideoFrameRate;
|
public final int | getVideoHeight()Returns the height of the video, in the unit of pixels. Valid only for {@link #TYPE_VIDEO}
tracks.
if (mType != TYPE_VIDEO) {
throw new IllegalStateException("Not a video track");
}
return mVideoHeight;
|
public final int | getVideoWidth()Returns the width of the video, in the unit of pixels. Valid only for {@link #TYPE_VIDEO}
tracks.
if (mType != TYPE_VIDEO) {
throw new IllegalStateException("Not a video track");
}
return mVideoWidth;
|
public void | writeToParcel(android.os.Parcel dest, int flags)Used to package this object into a {@link Parcel}.
dest.writeInt(mType);
dest.writeString(mId);
dest.writeString(mLanguage);
dest.writeInt(mAudioChannelCount);
dest.writeInt(mAudioSampleRate);
dest.writeInt(mVideoWidth);
dest.writeInt(mVideoHeight);
dest.writeFloat(mVideoFrameRate);
dest.writeBundle(mExtra);
|