java.lang.Object |
↳ |
com.google.android.gms.cast.framework.media.MediaUtils |
Class Overview
Utils for remote media control.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
static
Uri
getImageUri
(MediaInfo info, int index)
Returns an Uri
of an image for the MediaInfo
at the given index. Index should
be a number between 0 and n-1
, inclusive, where n
is the number of images for
that given item.
Parameters |
info |
MediaInfo :
The MediaInfo that contains a list of images. |
index |
int :
The index into the list of images. |
Returns |
Uri |
An Uri of the image, or null if no image URL is found.
|
public
static
String
getImageUrl
(MediaInfo info, int index)
Returns the URL of an image for the MediaInfo
at the given index. Index should be a
number between 0 and n-1
, inclusive, where n
is the number of images for that
given item.
Parameters |
info |
MediaInfo :
The MediaInfo that contains a list of images. |
index |
int :
The index into the list of images. |
Returns |
String |
The URL of the image, or null if no image URL is found.
|
public
static
Locale
getTrackLanguage
(MediaTrack track)
Returns the Locale
defined by the language field of a MediaTrack
object.
Parameters |
track |
MediaTrack :
The MediaTrack that has a language. |
Returns |
Locale |
A Locale representing the track language, or null if no language set.
|