Quick Start
Lura Player is a video player SDK that enables HLS video playback in iOS and iPadOS applications. It has a user-friendly interface, developer-friendly SDK and includes industry standard capabilities, making it a comprehensive solution for video streaming and advertising. The SDK is written in Swift, a programming language developed by Apple for general-purpose use. Lura Player offers advanced advertisement support and a range of features for a seamless viewing experience, including support for multiple audio and subtitle tracks and advanced playback controls.
Integrating Lura Player to your existing application is easy and flawless. Just copy the following code into
your ViewController
once you have imported the SDK.
Define Listener
private lazy var luraListener: LuraEventListener = { [weak self] eventBundle in
switch eventBundle.event {
//Listen events Here
}
}
Init SDK and play
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)