Skip to main content

Lura Configuration

The MCP platform by Akta Tech LLC. is a feature complete OTT Platform that removes the need for manual configuration of the playback media and allows the configurations to be used with multiple assets.

To configure the Lura Player based on your pre-configured play configuration in MCP, you can use the following attributes in your configuration.

AttributeTypeDescription
appKeystringAppKey generated in MCP based on the pre-adjusted play configuration
assetIdstringAssetId of the VOD or the Live Stream
tokenstring(Optional) When specified the provided token will be used in entitlements requests.
let player =  try? LuraPlayer(playerView: playerView)
player?.addListener(listener: luraListener)
let lura = Lura(appKey: "APP_KEY", assetId: "ASSET_ID")
let luraConfig = LuraPlayerConfiguration(lura: lura)
player?.setConfig(luraConfig)
Token Flow
let player =  try? LuraPlayer(playerView: playerView)
player?.addListener(listener: luraListener)
let lura = Lura(token: "TOKEN")
let luraConfig = LuraPlayerConfiguration(lura: lura)
player?.setConfig(luraConfig)

In addition to the Lura configuration, you can include additional configuration that will be merged with the Play Configuration in the MCP. This can be useful when you need to adjust certain parameters dynamically while keeping others configured through the MCP. For example, you might want to insert client-side ads based on the viewer's subscription plan or device, while still using the analytic credentials specified in the Play Configuration.

let player =  try? LuraPlayer(playerView: playerView)
player?.addListener(listener: luraListener)
let lura = Lura(appKey: "APP_KEY", assetId: "ASSET_ID")
let controls = LuraControls()
controls.autoplay = true
controls.volume = 1.0
let luraConfig = LuraPlayerConfiguration(lura: lura, controls: controls)
player?.setConfig(luraConfig)