java.lang.Object | |
↳ | com.google.android.gms.cast.MediaInfo |
A class that aggregates information about a media item. Use MediaInfo.Builder
to
build an instance of this class. MediaInfo
is used by RemoteMediaPlayer
to
load media on the receiver application.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaInfo.Builder | A builder for MediaInfo objects. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STREAM_TYPE_BUFFERED | A buffered stream type. | |||||||||
int | STREAM_TYPE_INVALID | An invalid (unknown) stream type. | |||||||||
int | STREAM_TYPE_LIVE | A live stream type. | |||||||||
int | STREAM_TYPE_NONE | A stream type of "none". | |||||||||
long | UNKNOWN_DURATION | A constant indicating an unknown duration, such as for a live stream. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an unmodifiable list of
AdBreakClipInfo s, or null if none have been
specified. | |||||||||||
Returns an unmodifiable list of
AdBreakInfo s, or null if none have been
specified. | |||||||||||
Returns the content ID.
| |||||||||||
Returns the content (MIME) type.
| |||||||||||
Returns the custom data, if any.
| |||||||||||
Returns the list of media tracks, or
null if none have been specified. | |||||||||||
Returns the media item metadata.
| |||||||||||
Returns the stream duration, in milliseconds.
| |||||||||||
Returns the stream type; one of the
STREAM_TYPE_ constants. | |||||||||||
Returns the text track style, or
null if none has been specified. | |||||||||||
Sets the text track style.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
A buffered stream type.
An invalid (unknown) stream type.
A live stream type.
A stream type of "none".
A constant indicating an unknown duration, such as for a live stream.
Parameters | |
---|---|
other |
Object
|
Returns | |
---|---|
boolean |
Returns an unmodifiable list of AdBreakClipInfo
s, or null
if none have been
specified.
Returns | |
---|---|
List<AdBreakClipInfo> |
Returns an unmodifiable list of AdBreakInfo
s, or null
if none have been
specified.
Returns | |
---|---|
List<AdBreakInfo> |
Returns the content ID.
Returns | |
---|---|
String |
Returns the content (MIME) type.
Returns | |
---|---|
String |
Returns the custom data, if any.
Returns | |
---|---|
JSONObject |
Returns the list of media tracks, or null
if none have been specified.
Returns | |
---|---|
List<MediaTrack> |
Returns the stream duration, in milliseconds. Returns UNKNOWN_DURATION
for live
streams.
Returns | |
---|---|
long |
Returns the stream type; one of the STREAM_TYPE_
constants.
Returns | |
---|---|
int |
Returns the text track style, or null
if none has been specified.
Returns | |
---|---|
TextTrackStyle |
Returns | |
---|---|
int |
Sets the text track style.
Parameters | |
---|---|
textTrackStyle |
TextTrackStyle
|
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|