java.lang.Object | |
↳ | com.google.android.gms.cast.MediaTrack |
A class that represents a media track, such as a language track or closed caption text track in a video.
Nested Classes | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MediaTrack.Builder |
A builder for MediaTrack objects.
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | SUBTYPE_CAPTIONS | A media track subtype indicating closed captions. | |||||||||
int | SUBTYPE_CHAPTERS | A media track subtype indicating chapters. | |||||||||
int | SUBTYPE_DESCRIPTIONS | A media track subtype indicating descriptions. | |||||||||
int | SUBTYPE_METADATA | A media track subtype indicating metadata. | |||||||||
int | SUBTYPE_NONE | A media track subtype indicating no subtype. | |||||||||
int | SUBTYPE_SUBTITLES | A media track subtype indicating subtitles. | |||||||||
int | SUBTYPE_UNKNOWN | A media track subtype indicating an unknown subtype. | |||||||||
int | TYPE_AUDIO | A media track type indicating an audio track. | |||||||||
int | TYPE_TEXT | A media track type indicating a text track. | |||||||||
int | TYPE_UNKNOWN | A media track type indicating an unknown track type. | |||||||||
int | TYPE_VIDEO | A media track type indicating a video track. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the content ID of the media track.
| |||||||||||
Returns the content type (MIME type) of the media track, or
null if none was
specified.
| |||||||||||
Returns the custom data object for this media track, or
null if none was
specified.
| |||||||||||
Returns the unique ID of the media track.
| |||||||||||
Returns the language of this media track in
RFC-5464 format, or
null if none was specified.
| |||||||||||
Returns the name of the media track, or
null if none was specified.
| |||||||||||
Returns the subtype of this media track; one of the
SUBTYPE_ constants.
| |||||||||||
Returns the type of the track; one of the
TYPE_ constants.
| |||||||||||
Sets the content ID for the media track.
| |||||||||||
Sets the content type (MIME type) of the media track.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A media track subtype indicating closed captions.
A media track subtype indicating chapters.
A media track subtype indicating descriptions.
A media track subtype indicating metadata.
A media track subtype indicating no subtype.
A media track subtype indicating subtitles.
A media track subtype indicating an unknown subtype.
A media track type indicating an audio track.
A media track type indicating a text track.
A media track type indicating an unknown track type.
A media track type indicating a video track.
Returns the content ID of the media track.
Returns the content type (MIME type) of the media track, or null
if none was
specified.
Returns the custom data object for this media track, or null
if none was
specified.
Returns the unique ID of the media track.
Returns the language of this media track in
RFC-5464
format, or
null
if none was specified.
Returns the name of the media track, or null
if none was specified.
Returns the subtype of this media track; one of the SUBTYPE_
constants.
Returns the type of the track; one of the TYPE_
constants.
Sets the content ID for the media track.
Sets the content type (MIME type) of the media track.