Package com.castlabs.sdk.downloader
Interface Downloader.ModelReadyCallback
- Enclosing class:
- Downloader
public static interface Downloader.ModelReadyCallback
Callback that is triggered after a Manifest URL was parsed and
 a model can be generated from the list of available tracks and qualities, see 
DownloadServiceBinder.prepareDownload(android.content.Context, android.os.Bundle, com.castlabs.sdk.downloader.Downloader.ModelReadyCallback)- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled when an error occurred while loading the manifest or preparing the datavoidonModelAvailable(Download download) Called with the current download model.
- 
Method Details- 
onErrorCalled when an error occurred while loading the manifest or preparing the data- Parameters:
- e- The source error or the- CastlabsPlayerExceptionwhenever the- PlayerSDK.init(Context)failed.
 
- 
onModelAvailableCalled with the current download model. The model contains video qualities, audio tracks, and subtitle tracks and implementations need to select which of these tracks should be downloaded.- Parameters:
- download- The download
 
 
-