Package com.brightcove.player.offline
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 Summary
ConstructorDescriptionMediaPresentationDescriptionLoadable
(com.google.android.exoplayer2.source.dash.manifest.DashManifestParser mpdParser, String manifestUrl, File downloadDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the manifest file with its absolute path.com.google.android.exoplayer2.source.dash.manifest.DashManifest
Gets the Media Presentation Description manifest object resulted from the request.void
load()
-
Constructor Details
-
MediaPresentationDescriptionLoadable
-
-
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 interfacecom.google.android.exoplayer2.upstream.Loader.Loadable
-
load
- Specified by:
load
in interfacecom.google.android.exoplayer2.upstream.Loader.Loadable
- Throws:
IOException
-
getManifestFile
Gets the manifest file with its absolute path.- Returns:
- the manifest file.
-