Package com.theoplayer.android.api
Class THEOplayerGlobal
-
- All Implemented Interfaces:
public abstract class THEOplayerGlobal
The THEOplayer related operations which are not tied to a particular THEOplayerView.
-
-
Constructor Summary
Constructors Constructor Description THEOplayerGlobal()
-
Method Summary
Modifier and Type Method Description static THEOplayerGlobal
getSharedInstance(@NonNull() Context context)
A THEOplayerGlobal instance. abstract Cache
getCache()
The cache. abstract SslSettings
getSsl()
The settings of the Secure Socket Layer. abstract PlaybackSettings
getPlaybackSettings()
The settings of the playback. abstract void
setApplicationInstance(@NonNull() Application application)
Sets the Application instance. abstract void
registerContentProtectionIntegration(@NonNull() String integrationId, @NonNull() KeySystemId keySystemId, @NonNull() ContentProtectionIntegrationFactory integrationFactory)
Register a ContentProtectionIntegrationFactory for a specific integration id and a specific keySystem. static String
getVersion()
The THEOplayer version used. -
-
Method Detail
-
getSharedInstance
@NonNull() static THEOplayerGlobal getSharedInstance(@NonNull() Context context)
A THEOplayerGlobal instance.
- Parameters:
context
- The Activity context.- Returns:
A THEOplayerGlobal instance. (NonNull)
-
getCache
@NonNull() abstract Cache getCache()
The cache.
- Returns:
A reference to the cache. (Nullable)
-
getSsl
@NonNull() abstract SslSettings getSsl()
The settings of the Secure Socket Layer.
- Returns:
The settings of the Secure Socket Layer. (NonNull)
-
getPlaybackSettings
@NonNull() abstract PlaybackSettings getPlaybackSettings()
The settings of the playback.
- Returns:
The settings of the playback. (Nullable)
-
setApplicationInstance
abstract void setApplicationInstance(@NonNull() Application application)
Sets the Application instance.
- Parameters:
application
- The reference to the Application.
-
registerContentProtectionIntegration
abstract void registerContentProtectionIntegration(@NonNull() String integrationId, @NonNull() KeySystemId keySystemId, @NonNull() ContentProtectionIntegrationFactory integrationFactory)
Register a ContentProtectionIntegrationFactory for a specific integration id and a specific keySystem.
- Parameters:
integrationId
- The name of the integration which is being defined.keySystemId
- The name of the DRM key system to be used.integrationFactory
- The factory to get an implementation of ContentProtectionIntegration.
-
getVersion
static String getVersion()
The THEOplayer version used.
Example:
- "2.67.0"
- Since:
v3.5.0
-
-
-
-