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
ConstructorsConstructorDescriptionMediaPresentationDescriptionLoadable(com.google.android.exoplayer2.source.dash.manifest.DashManifestParser mpdParser, String manifestUrl, File downloadDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoidGets the manifest file with its absolute path.com.google.android.exoplayer2.source.dash.manifest.DashManifestGets the Media Presentation Description manifest object resulted from the request.voidload()
-
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:
cancelLoadin interfacecom.google.android.exoplayer2.upstream.Loader.Loadable
-
load
- Specified by:
loadin interfacecom.google.android.exoplayer2.upstream.Loader.Loadable- Throws:
IOException
-
getManifestFile
Gets the manifest file with its absolute path.- Returns:
- the manifest file.
-