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". |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the content ID.
| |||||||||||
Returns the content (MIME) type.
| |||||||||||
Returns the custom data, if any.
| |||||||||||
Returns the media item metadata.
| |||||||||||
Returns the stream duration, in milliseconds.
| |||||||||||
Returns the stream type.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A buffered stream type.
An invalid (unknown) stream type.
A live stream type.
A stream type of "none".
Returns the content ID.
Returns the content (MIME) type.
Returns the custom data, if any.
Returns the stream duration, in milliseconds.
Returns the stream type.