public final class CastMediaUtil
extends java.lang.Object
| Constructor and Description |
|---|
CastMediaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.android.gms.cast.MediaMetadata |
createMediaMetadata(java.lang.String title,
java.lang.String subTitle,
java.lang.String studio,
java.lang.String imageUrl,
java.lang.String bigImageUrl)
Creates a
MediaMetadata using the parameters passed. |
static com.google.android.gms.cast.MediaInfo |
toMediaInfo(android.content.Context context,
Video video,
Source source)
Deprecated.
|
static com.google.android.gms.cast.MediaInfo |
toMediaInfo(android.content.Context context,
Video video,
Source source,
com.google.android.gms.cast.MediaMetadata mediaMetadata,
org.json.JSONObject customData)
Deprecated.
|
static com.google.android.gms.cast.MediaInfo |
toMediaInfo(Video video,
Source source)
|
static com.google.android.gms.cast.MediaInfo |
toMediaInfo(Video video,
Source source,
com.google.android.gms.cast.MediaMetadata mediaMetadata,
org.json.JSONObject customData)
|
@Deprecated
public static com.google.android.gms.cast.MediaInfo toMediaInfo(@NonNull
android.content.Context context,
@NonNull
Video video,
@NonNull
Source source)
toMediaInfo(Video, Source).MediaInfo object using a Video and a Source.
The MediaMetadata will be created with the information available retrieved
from the parameters.context - the contextvideo - the videosource - the sourcepublic static com.google.android.gms.cast.MediaInfo toMediaInfo(@NonNull
Video video,
@NonNull
Source source)
MediaInfo object using a Video and a Source.
The MediaMetadata will be created with the information available retrieved
from the parameters.video - the videosource - the source@Deprecated
public static com.google.android.gms.cast.MediaInfo toMediaInfo(@NonNull
android.content.Context context,
@NonNull
Video video,
@NonNull
Source source,
@Nullable
com.google.android.gms.cast.MediaMetadata mediaMetadata,
@Nullable
org.json.JSONObject customData)
toMediaInfo(Video, Source, MediaMetadata, JSONObject).MediaInfo object using a Video, a Source and the MediaMetadata.
If the MediaMetadata is null, one will be created with the information available retrieved
from the parameters.context - the contextvideo - the videosource - the sourcemediaMetadata - the media metadatacustomData - the cast custom datapublic static com.google.android.gms.cast.MediaInfo toMediaInfo(@NonNull
Video video,
@NonNull
Source source,
@Nullable
com.google.android.gms.cast.MediaMetadata mediaMetadata,
@Nullable
org.json.JSONObject customData)
MediaInfo object using a Video, a Source and the MediaMetadata.
If the MediaMetadata is null, one will be created with the information available retrieved
from the parameters.video - the videosource - the sourcemediaMetadata - the media metadatacustomData - the cast custom datapublic static com.google.android.gms.cast.MediaMetadata createMediaMetadata(java.lang.String title,
java.lang.String subTitle,
java.lang.String studio,
java.lang.String imageUrl,
java.lang.String bigImageUrl)
MediaMetadata using the parameters passed.title - the titlesubTitle - the sub titlestudio - the studioimageUrl - the image urlbigImageUrl - the big image url