public class MediaPresentationDescriptionLoadable
extends java.lang.Object
implements com.google.android.exoplayer2.upstream.Loader.Loadable
Loader.Loadable
responsible to request the
Media Presentation Description manifest and store it in a specified directory.Constructor and Description |
---|
MediaPresentationDescriptionLoadable(com.google.android.exoplayer2.source.dash.manifest.DashManifestParser mpdParser,
java.lang.String manifestUrl,
java.io.File downloadDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
cancelLoad() |
java.io.File |
getManifestFile()
Gets the manifest file with its absolute path.
|
com.google.android.exoplayer2.source.dash.manifest.DashManifest |
getResult()
Gets the Media Presentation Description manifest object resulted from the request.
|
void |
load() |
public MediaPresentationDescriptionLoadable(@NonNull com.google.android.exoplayer2.source.dash.manifest.DashManifestParser mpdParser, @NonNull java.lang.String manifestUrl, @NonNull java.io.File downloadDirectory)
@Nullable public com.google.android.exoplayer2.source.dash.manifest.DashManifest getResult()
public void cancelLoad()
cancelLoad
in interface com.google.android.exoplayer2.upstream.Loader.Loadable
public void load() throws java.io.IOException, java.lang.InterruptedException
load
in interface com.google.android.exoplayer2.upstream.Loader.Loadable
java.io.IOException
java.lang.InterruptedException
public java.io.File getManifestFile()