java.lang.Object | |
↳ | android.media.tv.TvTrackInfo |
Encapsulates the format of tracks played in TvInputService
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TvTrackInfo.Builder |
A builder class for creating TvTrackInfo objects.
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPE_AUDIO | The type value for audio tracks. | |||||||||
int | TYPE_SUBTITLE | The type value for subtitle tracks. | |||||||||
int | TYPE_VIDEO | The type value for video tracks. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns the audio channel count.
| |||||||||||
Returns the audio sample rate, in the unit of Hz.
| |||||||||||
Returns the extra information about the current track.
| |||||||||||
Returns the ID of the track.
| |||||||||||
Returns the language information encoded by either ISO 639-1 or ISO 639-2/T.
| |||||||||||
Returns the type of the track.
| |||||||||||
Returns the frame rate of the video, in the unit of fps (frames per second).
| |||||||||||
Returns the height of the video, in the unit of pixels.
| |||||||||||
Returns the width of the video, in the unit of pixels.
| |||||||||||
Used to package this object into a
Parcel .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
The type value for audio tracks.
The type value for subtitle tracks.
The type value for video tracks.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns the audio channel count. Valid only for TYPE_AUDIO
tracks.
Returns the audio sample rate, in the unit of Hz. Valid only for TYPE_AUDIO
tracks.
Returns the extra information about the current track.
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 null
.
Returns the type of the track. The type should be one of the followings:
TYPE_AUDIO
, TYPE_VIDEO
and TYPE_SUBTITLE
.
Returns the frame rate of the video, in the unit of fps (frames per second). Valid only for
TYPE_VIDEO
tracks.
Returns the height of the video, in the unit of pixels. Valid only for TYPE_VIDEO
tracks.
Returns the width of the video, in the unit of pixels. Valid only for TYPE_VIDEO
tracks.