-
public final class CastMediaUtil
An utility class to work with Google Cast and Brightcove Media.
-
-
Method Summary
Modifier and Type Method Description static MediaInfo
toMediaInfo(@NonNull() Context context, @NonNull() Video video, @NonNull() Source source)
Creates a MediaInfo object using a Video and a Source. static MediaInfo
toMediaInfo(@NonNull() Video video, @NonNull() Source source)
Creates a MediaInfo object using a Video and a Source. static MediaInfo
toMediaInfo(@NonNull() Context context, @NonNull() Video video, @NonNull() Source source, @Nullable() MediaMetadata mediaMetadata, @Nullable() JSONObject customData)
Creates a MediaInfo object using a Video, a Source and the MediaMetadata. static MediaInfo
toMediaInfo(@NonNull() Video video, @NonNull() Source source, @Nullable() MediaMetadata mediaMetadata, @Nullable() JSONObject customData)
Creates a MediaInfo object using a Video, a Source and the MediaMetadata. static MediaMetadata
createMediaMetadata(String title, String subTitle, String studio, String imageUrl, String bigImageUrl)
Creates a MediaMetadata using the parameters passed. -
-
Method Detail
-
toMediaInfo
@Deprecated() static MediaInfo toMediaInfo(@NonNull() Context context, @NonNull() Video video, @NonNull() Source source)
Creates a MediaInfo object using a Video and a Source.The MediaMetadata will be created with the information available retrievedfrom the parameters.
- Parameters:
context
- the contextvideo
- the videosource
- the source
-
toMediaInfo
static MediaInfo toMediaInfo(@NonNull() Video video, @NonNull() Source source)
Creates a MediaInfo object using a Video and a Source.The MediaMetadata will be created with the information available retrievedfrom the parameters.
- Parameters:
video
- the videosource
- the source
-
toMediaInfo
@Deprecated() static MediaInfo toMediaInfo(@NonNull() Context context, @NonNull() Video video, @NonNull() Source source, @Nullable() MediaMetadata mediaMetadata, @Nullable() JSONObject customData)
Creates a MediaInfo object using a Video, a Source and the MediaMetadata.If the MediaMetadata is null, one will be created with the information available retrievedfrom the parameters.
- Parameters:
context
- the contextvideo
- the videosource
- the sourcemediaMetadata
- the media metadatacustomData
- the cast custom data
-
toMediaInfo
static MediaInfo toMediaInfo(@NonNull() Video video, @NonNull() Source source, @Nullable() MediaMetadata mediaMetadata, @Nullable() JSONObject customData)
Creates a MediaInfo object using a Video, a Source and the MediaMetadata.If the MediaMetadata is null, one will be created with the information available retrievedfrom the parameters.
- Parameters:
video
- the videosource
- the sourcemediaMetadata
- the media metadatacustomData
- the cast custom data
-
createMediaMetadata
static MediaMetadata createMediaMetadata(String title, String subTitle, String studio, String imageUrl, String bigImageUrl)
Creates a MediaMetadata using the parameters passed.
- Parameters:
title
- the titlesubTitle
- the sub titlestudio
- the studioimageUrl
- the image urlbigImageUrl
- the big image url
-
-
-
-