Package 

Class CastMediaUtil


  • 
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 context
        video - the video
        source - 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 video
        source - 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 context
        video - the video
        source - the source
        mediaMetadata - the media metadata
        customData - 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 video
        source - the source
        mediaMetadata - the media metadata
        customData - 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 title
        subTitle - the sub title
        studio - the studio
        imageUrl - the image url
        bigImageUrl - the big image url