Skip to main content

Make Your Own UI

If you want to add a custom UI on top of Lura Player, you can add enabled: false parameter to your config in controls, and Lura Player won't load any user interface.

  let player = LuraPlayer()
let luraPlayerConfig = LuraPlayerConfiguration()
luraPlayerConfig.controls.enabled = false
player.setConfig(luraPlayerConfig)
func togglePlayPause() {
if (player.isPaused()) {
player.play()
} else {
player.pause()
}
}