Package com.brightcove.player
Class OfflinePlaybackPlugin
- java.lang.Object
-
- com.brightcove.player.OfflinePlaybackPlugin
-
- All Implemented Interfaces:
LicenseManagerFactory
public final class OfflinePlaybackPlugin extends java.lang.Object implements LicenseManagerFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOfflinePlaybackPlugin.Modules
-
Field Summary
Fields Modifier and Type Field Description protected LicenseManagerFactorylicenseManagerFactoryThe factory that will be used to createLicenseManagerinstances.
-
Constructor Summary
Constructors Constructor Description OfflinePlaybackPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseManagercreateLicenseManager(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.LicenseManagercreateLicenseManager(Video video, Source source, java.util.Map<java.lang.String,java.lang.String> properties)static OfflinePlaybackPlugingetInstance()Provides reference to the single instance ofOfflinePlaybackPlugin.OfflinePlaybackPlugininitialize(OfflinePlaybackPlugin.Modules modules)Initializes the plugin by using the supplied modules to fulfill the required dependencies.
-
-
-
Field Detail
-
licenseManagerFactory
@Inject @Nullable protected LicenseManagerFactory licenseManagerFactory
The factory that will be used to createLicenseManagerinstances.
-
-
Method Detail
-
getInstance
@Singleton public static OfflinePlaybackPlugin getInstance()
Provides reference to the single instance ofOfflinePlaybackPlugin.- Returns:
- reference to the single instance of
OfflinePlaybackPlugin.
-
createLicenseManager
@NonNull public LicenseManager createLicenseManager(@NonNull Video video, @NonNull Source source)
Description copied from interface:LicenseManagerFactoryCreates a new instance ofLicenseManager, which can be used to acquire, renew or releases (Offline) playback DRM license for a specific video source.- Specified by:
createLicenseManagerin 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, java.util.Map<java.lang.String,java.lang.String> properties)
- Specified by:
createLicenseManagerin interfaceLicenseManagerFactory
-
initialize
public OfflinePlaybackPlugin initialize(@NonNull OfflinePlaybackPlugin.Modules modules)
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:
java.lang.IllegalStateException- if the plugin has been initialized already.
-
-