DashDownloadable
A MediaDownloadable responsible to manage the download of a Dash Video and its assets.
Author
Sergio Martinez - smartinez@brightcove.com
FIXME The way the class attempts to read the DASH manifest is convulated and inefficent - Raaj
Constructors
Link copied to clipboard
constructor(context: Context, video: Video, downloadEventListener: MediaDownloadable.DownloadEventListener, requestConfig: RequestConfig)
Properties
Link copied to clipboard
The key for the Bundle which returns the available audio language roles as ArrayList, matching the size and indexes of .
Link copied to clipboard
The key for the Bundle which returns the available audio languages as ArrayList
Link copied to clipboard
The name of that will be used for saving DASH manifest.
Link copied to clipboard
The key for the Bundle which returns the available video renditions as ArrayList
Functions
Link copied to clipboard
Cancels download of the media if it has not been completed yet.
Link copied to clipboard
open fun create(context: Context, video: Video, downloadEventListener: MediaDownloadable.DownloadEventListener, requestConfig: RequestConfig): MediaDownloadable
Creates the best MediaDownloadable for the given video based on the supported delivery types.
open fun create(context: Context, videoUrl: String, downloadEventListener: MediaDownloadable.DownloadEventListener, requestConfig: RequestConfig): MediaDownloadable
Creates the best MediaDownloadable for the given video url on the supported delivery types.
Link copied to clipboard
Deletes the offline copy of the media.
Link copied to clipboard
Returns the estimated total size of the media, which includes all assets such video, audio and subtitles.
Link copied to clipboard
Link copied to clipboard
Gets the directory the will hold all the assets related to this media.
Link copied to clipboard
Checks the overall download status by inspecting the status of each request in the entire download set.
Link copied to clipboard
Returns the estimated total size of the media, which includes all assets such video, audio and subtitles.
Link copied to clipboard
An asynchronous call to retrieve the MediaFormat tracks available for the current video.
Link copied to clipboard
open fun onLoadCanceled(loadable: MediaPresentationDescriptionLoadable, elapsedRealtimeMs: Long, loadDurationMs: Long, released: Boolean)
Link copied to clipboard
open fun onLoadCompleted(loadable: MediaPresentationDescriptionLoadable, elapsedRealtimeMs: Long, loadDurationMs: Long)
Link copied to clipboard
open fun onLoadError(loadable: MediaPresentationDescriptionLoadable, elapsedRealtimeMs: Long, loadDurationMs: Long, error: IOException, errorCount: Int): LoadErrorAction
Link copied to clipboard
Attempts to pause download of this media.
Link copied to clipboard
open fun registerDownloadable(deliveryType: DeliveryType, downloadableClass: Class<out MediaDownloadable>)
Registers the downloadable class that must be used to handled download of the specified media delivery type.
Link copied to clipboard
Requests the media to be downloaded asynchronously.
Link copied to clipboard
Attempts to resume download of this media.
Link copied to clipboard
Link copied to clipboard
Sets the video bitrate cap which will be used to determine what rendition will be downloaded.