AbstractOfflineCatalog
Constructors
Link copied to clipboard
constructor(context: Context, eventEmitter: EventEmitter, account: String, policy: String, baseURL: String)
Base constructor for AbstractOfflineCatalog.
constructor(context: Context, eventEmitter: EventEmitter, account: String, policy: String, baseURL: String, downloadFileCreator: DownloadFileCreator)
Constructor for AbstractOfflineCatalog with a custom DownloadFileCreator.
Functions
Link copied to clipboard
Adds the specified to the list of listeners that will be notified when a download event is raised.
Link copied to clipboard
Cancels a video download that has not been completed yet.
Asynchronously cancels a video download that has not been completed yet.
Link copied to clipboard
This method can be used to remove all assets related to a single video from the host device.
Deletes the offline copy of the specified video.
Asynchronously deletes the offline copy of the specified video.
Link copied to clipboard
This method is used to request a single video to be downloaded for offline playback.
This method is used to request a single video to be downloaded asynchronously for offline playback.
Link copied to clipboard
This method returns the approximate total size for a Video already downloaded or with a download in progress.
This method is used to determine the approximate total size of all assets needed to store the video on the host device.
Link copied to clipboard
This method returns the list of videos that have been queued for download.
Asynchronously returns the list of videos that have been queued for download.
Link copied to clipboard
Finds all offline video downloads with specified status.
Asynchronously finds all offline video downloads with specified status.
Link copied to clipboard
Finds the offline copy of the specified video, if it exists.
open fun findOfflineVideoById(videoId: String, httpRequestConfig: HttpRequestConfig, callback: OfflineCallback<Video>)
Asynchronously finds the offline copy of the specified video, if it exists.
Link copied to clipboard
Gets the current base path that will be used to store new offline video requests.
Link copied to clipboard
open fun getMediaFormatTracksAvailable(video: Video, mediaFormatListener: MediaDownloadable.MediaFormatListener)
An asynchronous call to retrieve the MediaFormat tracks available for a given video.
Link copied to clipboard
This method returns a String with the representation of a size in decimal base (which is the standard when representing storage related values).
Link copied to clipboard
Gets the status of previous video download request.
Asynchronously gets the status of previous video download request.
Link copied to clipboard
Checks whether the download path is valid.
Link copied to clipboard
Returns whether download over a metered network is allowed.
Link copied to clipboard
This method can be used to check if the SDK is currently configured to use a cellular network for downloading DRM media assets.
Link copied to clipboard
This method can be used to check if the SDK is currently configured to use a cellular roaming network for downloading DRM media assets.
Link copied to clipboard
Checks if the video parameter can be downloaded and the directory to store the downloaded video files is valid.
Link copied to clipboard
This method is used to pause a single video being downloaded.
This method is used to asynchronously pause a single video being downloaded.
Link copied to clipboard
Submits an offline playback license release request for the specified video asynchronously.
Link copied to clipboard
open fun removeDownloadEventListener(downloadEventListener: MediaDownloadable.DownloadEventListener)
Removes the specified from the list of listeners that will be notified when a download event is raised.
Link copied to clipboard
open fun requestPurchaseLicense(video: Video, listener: EventListener, config: CustomerRightsTokenConfig)
open fun requestPurchaseLicense(video: Video, listener: EventListener, httpRequestConfig: HttpRequestConfig)
Submits an offline playback purchase license request for the specified video asynchronously.
Link copied to clipboard
open fun requestRentalLicense(video: Video, absoluteExpiration: Date, playDuration: Long, listener: EventListener)
open fun requestRentalLicense(video: Video, absoluteExpiration: Date, playDuration: Long, listener: EventListener, config: CustomerRightsTokenConfig)
open fun requestRentalLicense(video: Video, absoluteExpiration: Date, playDuration: Long, listener: EventListener, httpRequestConfig: HttpRequestConfig)
Submits an offline playback rental license request for the specified video asynchronously.
Link copied to clipboard
This method is used to resume the download of a video which was previously paused.
This method is used to resume a single video being downloaded which was previously paused.
This method is used to asynchronously resume the download of a video which was previously paused.
Link copied to clipboard
Sets the DownloadFileCreator to retrieve the base path that must be used to store new offline video requests.
Sets the base path that must be used to store new offline video requests.
Link copied to clipboard
Sets whether download over a metered network is allowed.
Link copied to clipboard
This method can be used to configure the SDK whether the cellular network may be used to download DRM media assets or not.
Link copied to clipboard
This method can be used to configure the SDK whether the cellular roaming network may be used downloading DRM media assets.
Link copied to clipboard
Sets the video bitrate cap which will be used to determine what rendition will be downloaded.