For Teleport SDK to work, you need:
- Version Android 5.0 and above.
- Android system WebView version 58 and above.
In case if Android system WebView does not meet the requirements, it can be updated from Google Play starting from Android 5.0.
Before using the SDK, you must add project dependencies to the
gradle file. To do this, specify the Maven repository URL in the Repositories section and specify the dependency in the Dependencies section.
You must also add to the
AndroidManifest.xml manifest file the following permissions:
Before initializing the player, you must initialize the Teleport SDK. Initialization takes place by calling the static
init method. It is recommended that you initialize the Teleport SDK in the
onCreate() method extending your
After the Teleport SDK is initialized, you must create an instance of the
Teleport SDK class that is used to configure the operation.
Then the Teleport SDK is started by calling the
start () method. Errors may occur when initializing the SDK. In such cases, when calling the
start () method, the
InitializationException exception must be wiped. The player will be initialized with the modified links to the manifest received from the SDK by calling
getChangedManifestUrl(). Therefore Teleport SDK will not start,
getChangedManifestUrl() will return the original manifest link, thus not disrupting the player.
Integration example with ExoPlayer:
The following parameters are transmitted to the Teleport SDK constructor:
apiKey- API key. Cannot be null. You have to get the mobile Teleport SDK API key in the Teleport client area.
public TeleportSDK(@NonNull String apiKey)