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 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 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 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 width of the video, in the unit of pixels. Valid only for TYPE_VIDEO
tracks.
videoWidth | The width of the video. |
---|