class MKPBackendConfiguration: MKConfiguration
Fields
Name | Description |
---|---|
var serverUrl: String
|
Base URL or Server URL for the Mediakind Content Controller (ACC). |
var authToken: String
|
The Authorization (STS) token string. |
var accountId: String
|
is mandatory param primarily required for registration of device. This is same as login id used to generate the AuthToken |
var ownerUid: String
|
Unique string that identifies the owner of the media. Default value is "azuki" |
Constructors
<init>
constructor(serverUrl: String, authToken: String, ownerUid: String)
This constructor is Deprecated.
Parameters
Name | Description |
---|---|
serverUrl: String
|
Base URL or Server URL for the Mediakind Content Controller (ACC). |
authToken: String
|
The Authorization (STS) token string. |
ownerUid: String
|
Unique string that identifies the owner of the media. Default value is "azuki" |
<init>
constructor(serverUrl: String, authToken: String, accountId: String, ownerUid: String)
These properties must be set and passed in as part of MKPPlayerConfiguration for playback of Mediakind registered source streams. These properties contain details of the server endpoints and other parameters/tokens that are necessary for the backend communication. Playback is not possible without these properly configured.
Below is an example
var backendConfiguration: MKPBackendConfiguration? = null
val accountId: String = "name@company.com"
val authToken = "Auth****" // sourceConfig.stsToken!!
backendConfiguration = MKPBackendConfiguration("https://ottapp-appgw-amp-a.cim.mr.tv3cloud.com" /* MK server End Point */, authToken , accountId)
var configuration = MKPlayerConfiguration()
configuration?.backendConfiguration = backendConfiguration
val player = mkplayer = MKPlayer(context: Context, rootView: RelativeLayout, configuration)
Parameters
Name | Description |
---|---|
serverUrl: String
|
Base URL or Server URL for the Mediakind Content Controller (ACC). |
authToken: String
|
The Authorization (STS) token string. |
accountId: String
|
is mandatory param primarily required for registration of device. This is same as login id used to generate the AuthToken |
ownerUid: String
|
Unique string that identifies the owner of the media. Default value is "azuki" |
These properties must be set and passed in as part of MKPPlayerConfiguration for playback of Mediakind registered source streams. These properties contain details of the server endpoints and other parameters/tokens that are necessary for the backend communication. Playback is not possible without these properly configured.
Below is an example