public final class OfflinePlaybackPlugin extends java.lang.Object implements LicenseManagerFactory
Modifier and Type | Class and Description |
---|---|
static interface |
OfflinePlaybackPlugin.Modules |
Modifier and Type | Field and Description |
---|---|
protected LicenseManagerFactory |
licenseManagerFactory
The factory that will be used to create
LicenseManager instances. |
Constructor and Description |
---|
OfflinePlaybackPlugin() |
Modifier and Type | Method and Description |
---|---|
LicenseManager |
createLicenseManager(Video video,
Source source)
Creates a new instance of
LicenseManager , which can be used to acquire, renew or
releases (Offline) playback DRM license for a specific video source. |
static OfflinePlaybackPlugin |
getInstance()
Provides reference to the single instance of
OfflinePlaybackPlugin . |
OfflinePlaybackPlugin |
initialize(OfflinePlaybackPlugin.Modules modules)
Initializes the plugin by using the supplied modules to fulfill the required dependencies.
|
@Inject @Nullable protected LicenseManagerFactory licenseManagerFactory
LicenseManager
instances.@Singleton public static OfflinePlaybackPlugin getInstance()
OfflinePlaybackPlugin
.OfflinePlaybackPlugin
.@NonNull public LicenseManager createLicenseManager(@NonNull Video video, @NonNull Source source)
LicenseManagerFactory
LicenseManager
, which can be used to acquire, renew or
releases (Offline) playback DRM license for a specific video source.createLicenseManager
in interface LicenseManagerFactory
video
- reference to an offline playback enabled video.source
- reference to the source in the video that requires an offline playback license operation.LicenseManager
public OfflinePlaybackPlugin initialize(@NonNull OfflinePlaybackPlugin.Modules modules)
modules
- the modules that should be used to initialize this plugin.java.lang.IllegalStateException
- if the plugin has been initialized already.