Skip to main content

Identify Your Player

You can add name to your player by adding a name attribute to your configuration object. This name will be included in the events.

let player =  try? LuraPlayer(playerView: playerView)
player?.addListener(listener: luraListener)
let lura = Lura(appKey: "APP_KEY", assetId: "ASSET_ID")
let luraConfig = LuraPlayerConfiguration(lura: lura)
luraConfig.name = "lorem-ipsum-dolor-sit-amet"
player?.setConfig(luraConfig)