Companion

object Companion

Functions

Link copied to clipboard
fun getOfflineContentManager(sourceConfig: SourceConfig, location: String, id: String, listener: OfflineContentManagerListener, context: Context, resourceIdentifierCallback: ResourceIdentifierCallback? = null): OfflineContentManager

Gets a OfflineContentManager for the given parameters. A root folder needs to be provided in location. Multiple OfflineContentManager can have the same root folder. id has to contain an identifier for this source that is unique within the location and must never change. The root folder will contain a folder based on this id. A ResourceIdentifierCallback can be provided to uniquely identify resources if URLs in a downloaded source change.

Link copied to clipboard

Sets the download service class which should be used. It is not allowed to change the download service after it was set once. This includes using this method or generating an OfflineContentManager by calling OfflineContentManager.getOfflineContentManager. downloadServiceClass must extend BitmovinDownloadService.

Link copied to clipboard
fun setOfflineConfig(context: Context, offlineConfig: OfflineConfig)

Sets a OfflineConfig which can be used to configure the behaviour of the offline content feature. Default value is a default OfflineConfig. If the Requirements in the OfflineConfig change, the download service will be notified to reload them using the provided context.

Properties

Link copied to clipboard

Returns the currently active OfflineConfig.