Package com.brightcove.player
Class OfflinePlaybackPlugin
java.lang.Object
com.brightcove.player.OfflinePlaybackPlugin
- All Implemented Interfaces:
LicenseManagerFactory
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected LicenseManagerFactory
The factory that will be used to createLicenseManager
instances. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLicenseManager
(Video video, Source source) Creates a new instance ofLicenseManager
, which can be used to acquire, renew or releases (Offline) playback DRM license for a specific video source.static OfflinePlaybackPlugin
Provides reference to the single instance ofOfflinePlaybackPlugin
.initialize
(OfflinePlaybackPlugin.Modules modules) Initializes the plugin by using the supplied modules to fulfill the required dependencies.
-
Field Details
-
licenseManagerFactory
The factory that will be used to createLicenseManager
instances.
-
-
Constructor Details
-
OfflinePlaybackPlugin
public OfflinePlaybackPlugin()
-
-
Method Details
-
getInstance
Provides reference to the single instance ofOfflinePlaybackPlugin
.- Returns:
- reference to the single instance of
OfflinePlaybackPlugin
.
-
createLicenseManager
Description copied from interface:LicenseManagerFactory
Creates a new instance ofLicenseManager
, which can be used to acquire, renew or releases (Offline) playback DRM license for a specific video source.- Specified by:
createLicenseManager
in interfaceLicenseManagerFactory
- Parameters:
video
- reference to an offline playback enabled video.source
- reference to the source in the video that requires an offline playback license operation.- Returns:
- a new instance of
LicenseManager
-
createLicenseManager
public LicenseManager createLicenseManager(@NonNull Video video, @NonNull Source source, Map<String, String> properties) - Specified by:
createLicenseManager
in interfaceLicenseManagerFactory
-
initialize
Initializes the plugin by using the supplied modules to fulfill the required dependencies.- Parameters:
modules
- the modules that should be used to initialize this plugin.- Returns:
- reference to the plugin.
- Throws:
IllegalStateException
- if the plugin has been initialized already.
-