java.lang.Object | |
↳ | android.media.tv.TvTrackInfo.Builder |
A builder class for creating TvTrackInfo
objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a
TvTrackInfo.Builder .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
TvTrackInfo instance with the specified fields.
| |||||||||||
Sets the audio channel count.
| |||||||||||
Sets the audio sample rate, in the unit of Hz.
| |||||||||||
Sets a user readable description for the current track.
| |||||||||||
Sets the extra information about the current track.
| |||||||||||
Sets the language information of the current track.
| |||||||||||
Sets the frame rate of the video, in the unit fps (frames per rate).
| |||||||||||
Sets the height of the video, in the unit of pixels.
| |||||||||||
Sets the pixel aspect ratio (the ratio of a pixel's width to its height) of the video.
| |||||||||||
Sets the width of the video, in the unit of pixels.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a TvTrackInfo.Builder
. Any field that should be included in the TvTrackInfo
must be added.
type | The type of the track. |
---|---|
id | The ID of the track that uniquely identifies the current track among all the other tracks in the same TV program. |
Creates a TvTrackInfo
instance with the specified fields.
TvTrackInfo
instance
Sets the audio channel count. Valid only for TYPE_AUDIO
tracks.
audioChannelCount | The audio channel count. |
---|
Sets the audio sample rate, in the unit of Hz. Valid only for TYPE_AUDIO
tracks.
audioSampleRate | The audio sample rate. |
---|
Sets a user readable description for the current track.
description | The user readable description. |
---|
Sets the extra information about the current track.
extra | The extra information. |
---|
Sets the language information of the current track.
language | The language string encoded by either ISO 639-1 or ISO 639-2/T. |
---|
Sets the frame rate of the video, in the unit fps (frames per rate). Valid only for
TYPE_VIDEO
tracks.
videoFrameRate | The frame rate of the video. |
---|
Sets the height of the video, in the unit of pixels. Valid only for TYPE_VIDEO
tracks.
videoHeight | The height of the video. |
---|
Sets the pixel aspect ratio (the ratio of a pixel's width to its height) of the video.
Valid only for TYPE_VIDEO
tracks.
This is needed for applications to be able to scale the video properly for some video formats such as 720x576 4:3 and 720x576 16:9 where pixels are not square. By default, applications assume the value of 1.0 (square pixels), so it is not necessary to set the pixel aspect ratio for most video formats.
videoPixelAspectRatio | The pixel aspect ratio of the video. |
---|
Sets the width of the video, in the unit of pixels. Valid only for TYPE_VIDEO
tracks.
videoWidth | The width of the video. |
---|