@Deprecated public class DashDownloadable extends MediaDownloadable implements com.google.android.exoplayer.upstream.Loader.Callback
MediaDownloadable responsible to manage the download of a Dash Video and its assets.MediaDownloadable.DownloadEventListener, MediaDownloadable.MediaFormatListener, MediaDownloadable.OnVideoSizeCallbackAUDIO_LANGUAGE_ROLES, AUDIO_LANGUAGES, CAPTIONS, configurationBundle, context, DEFAULT_MPD_NAME, downloadEventListener, downloadManager, estimatedSize, requestConfig, video, VIDEO_RENDITIONS| Constructor and Description |
|---|
DashDownloadable(android.content.Context context,
Video video,
MediaDownloadable.DownloadEventListener downloadEventListener,
RequestConfig requestConfig)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
estimatedSize(MediaDownloadable.OnVideoSizeCallback callback)
Deprecated.
Asynchronous call
|
void |
getMediaFormatTracksAvailable(MediaDownloadable.MediaFormatListener mediaFormatListener)
Deprecated.
An asynchronous call to retrieve the MediaFormat tracks available for the current video.
|
protected java.util.HashMap<java.lang.String,java.io.Serializable> |
getMediaProperties()
Deprecated.
|
void |
onLoadCanceled(com.google.android.exoplayer.upstream.Loader.Loadable loadable)
Deprecated.
|
void |
onLoadCompleted(com.google.android.exoplayer.upstream.Loader.Loadable loadable)
Deprecated.
|
void |
onLoadError(com.google.android.exoplayer.upstream.Loader.Loadable loadable,
java.io.IOException e)
Deprecated.
|
protected void |
onMediaDownloadComplete(DownloadStatus status)
Deprecated.
Called when the media download has completed successfully.
|
boolean |
requestDownload()
Deprecated.
Requests the media to be downloaded asynchronously.
|
void |
requestDownload(com.google.android.exoplayer.dash.mpd.MediaPresentationDescription mediaPresentationDescription,
java.io.File manifestFile)
Deprecated.
Requests the media to be downloaded asynchronously.
|
cancelDownload, create, create, createDownloadRequest, deleteDownload, enqueueDownloadRequest, getConfigurationBundle, getDownloadDirectory, getDownloadStatus, getEstimatedSize, onMediaDownloadCancelled, onMediaDownloadDeleted, onMediaDownloadFailed, onMediaDownloadPaused, onMediaDownloadProgress, onMediaDownloadRequested, onMediaDownloadStarted, pauseDownload, registerDownloadable, resumeDownload, setConfigurationBundle, setVideoBitratepublic DashDownloadable(@NonNull
android.content.Context context,
@NonNull
Video video,
@Nullable
MediaDownloadable.DownloadEventListener downloadEventListener,
@Nullable
RequestConfig requestConfig)
public void getMediaFormatTracksAvailable(@NonNull
MediaDownloadable.MediaFormatListener mediaFormatListener)
MediaDownloadableMediaDownloadable.MediaFormatListener listener.
Note: Only the video type DeliveryType.DASH is currently supported.
getMediaFormatTracksAvailable in class MediaDownloadablemediaFormatListener - the media format listenerpublic boolean requestDownload()
MediaDownloadablerequestDownload in class MediaDownloadableMediaDownloadable.downloadEventListener.
Please use MediaDownloadable.getDownloadStatus() to query the download status.public void requestDownload(@NonNull
com.google.android.exoplayer.dash.mpd.MediaPresentationDescription mediaPresentationDescription,
@NonNull
java.io.File manifestFile)
MediaDownloadable.downloadEventListener. Please use
MediaDownloadable.getDownloadStatus() to query the download status.mediaPresentationDescription - the media presentation descriptionmanifestFile - the manifest filejava.lang.IllegalStateException - If the video has been already queued for download.public void estimatedSize(MediaDownloadable.OnVideoSizeCallback callback)
MediaDownloadableestimatedSize in class MediaDownloadablepublic void onLoadCompleted(com.google.android.exoplayer.upstream.Loader.Loadable loadable)
onLoadCompleted in interface com.google.android.exoplayer.upstream.Loader.Callbackpublic void onLoadCanceled(com.google.android.exoplayer.upstream.Loader.Loadable loadable)
onLoadCanceled in interface com.google.android.exoplayer.upstream.Loader.Callbackpublic void onLoadError(com.google.android.exoplayer.upstream.Loader.Loadable loadable,
java.io.IOException e)
onLoadError in interface com.google.android.exoplayer.upstream.Loader.Callbackprotected void onMediaDownloadComplete(@NonNull
DownloadStatus status)
MediaDownloadableonMediaDownloadComplete in class MediaDownloadableprotected java.util.HashMap<java.lang.String,java.io.Serializable> getMediaProperties()
getMediaProperties in class MediaDownloadable