setupControlPanel

fun setupControlPanel(autoKeepScreenOnEnabled: Boolean = true, defaultPanelType: PanelType = PanelType.EMBEDDED, disableControlPanel: Boolean? = null)

Set the control panel and initialize it

Parameters

autoKeepScreenOnEnabled

true to auto keep screen on. Default value is true.

defaultPanelType

to decide which panel type to present. Default value is PanelType.EMBEDDED.

disableControlPanel

to forces the control panel to not inflate so that custom panels can overlay the player view.