Class MediaPresentationDescriptionLoadable

java.lang.Object
com.brightcove.player.offline.MediaPresentationDescriptionLoadable
All Implemented Interfaces:
com.google.android.exoplayer2.upstream.Loader.Loadable

public class MediaPresentationDescriptionLoadable extends Object implements com.google.android.exoplayer2.upstream.Loader.Loadable
A Loader.Loadable responsible to request the Media Presentation Description manifest and store it in a specified directory.
  • Constructor Details

    • MediaPresentationDescriptionLoadable

      public MediaPresentationDescriptionLoadable(@NonNull com.google.android.exoplayer2.source.dash.manifest.DashManifestParser mpdParser, @NonNull String manifestUrl, @NonNull File downloadDirectory)
  • Method Details

    • getResult

      @Nullable public com.google.android.exoplayer2.source.dash.manifest.DashManifest getResult()
      Gets the Media Presentation Description manifest object resulted from the request.
      Returns:
      the MediaPresentationDescription object.
    • cancelLoad

      public void cancelLoad()
      Specified by:
      cancelLoad in interface com.google.android.exoplayer2.upstream.Loader.Loadable
    • load

      public void load() throws IOException
      Specified by:
      load in interface com.google.android.exoplayer2.upstream.Loader.Loadable
      Throws:
      IOException
    • getManifestFile

      public File getManifestFile()
      Gets the manifest file with its absolute path.
      Returns:
      the manifest file.