Android OpenTV Player SDK  4.23.5.1618864129
NMPSDK Class Reference

Static Public Member Functions

static String getSdkVersion ()
 Gets the version of the running SDK. More...
 
static boolean load2 (Context context) throws UnsatisfiedLinkError
 The new point of entry for use by the Nagra Player SDK. More...
 
static void load (Context context)
 The point of entry for use by the Nagra Player SDK. More...
 
static void load (Context context, String license)
 The point of entry for use by the Nagra Player SDK. More...
 
static void setLibPath (String libPath)
 Set the absolute path where SDK native lib is stored.Should be called before NMPSDK.load(). More...
 
static boolean disableSSLVerification ()
 Disable SSL verification in the native layer (loading of streaming media playlists and data). More...
 

Detailed Description

Class to load the Nagra Player SDK

Member Function Documentation

◆ disableSSLVerification()

static boolean disableSSLVerification ( )
static

Disable SSL verification in the native layer (loading of streaming media playlists and data).

Disables Verify Host, Verify Peer and TLS version checking This function will not affect sign on, license requests or Download to Go behaviour. Verification of HTTPS connections is enabled by default. Must be called after NMPSDK.load(), and before starting playback of any content.

SSL Verification in the native layer will remain disabled for the lifecycle of the SDK.

Returns
boolean true if the SSL verification was disabled successfully false if the SSL verification was not disabled due to content playback having commenced

◆ getSdkVersion()

static String getSdkVersion ( )
static

Gets the version of the running SDK.

Returns
String of the SDK version

◆ load() [1/2]

static void load ( Context  context)
static

The point of entry for use by the Nagra Player SDK.

This function should be called before any other interaction with the SDK. The SDK native path can be set by NMPSDK.setLibPath() before calling this function, otherwise the default path will be used.

Parameters
contextthe context used by the SDK
Deprecated:
please use throws instead

◆ load() [2/2]

static void load ( Context  context,
String  license 
)
static

The point of entry for use by the Nagra Player SDK.

This function should be called before any other interaction with the SDK. The SDK native path can be set by NMPSDK.setLibPath() before calling this function, otherwise the default path will be used.

Parameters
contextthe context used by the SDK
licensethe license for the SDK
Deprecated:
please use throws instead

◆ load2()

static boolean load2 ( Context  context) throws UnsatisfiedLinkError
static

The new point of entry for use by the Nagra Player SDK.

This function should be called before any other interaction with the SDK. The SDK native path can be set by NMPSDK.setLibPath() before calling this function, otherwise the default path will be used.

Parameters
contextthe context used by the SDK
Returns
true if library loaded and intialised successfully
Exceptions
UnsatisfiedLinkError

◆ setLibPath()

static void setLibPath ( String  libPath)
static

Set the absolute path where SDK native lib is stored.Should be called before NMPSDK.load().

Otherwise the default path will be used for SDK native lib.

Parameters
libPaththe absolute path for the sdk native dynamics library. For example /Users/nmp/libnmpsdk.so.