StyleConfig

data class StyleConfig(isUiEnabled: Boolean, playerUiCss: String, supplementalPlayerUiCss: String?, playerUiJs: String, isHideFirstFrame: Boolean, scalingMode: ScalingMode) : Parcelable

Configures visual presentation and behaviour of the Player UI.

Constructors

Link copied to clipboard
fun StyleConfig(isUiEnabled: Boolean = true, playerUiCss: String = "file:///android_asset/bitmovinplayer-ui.css", supplementalPlayerUiCss: String? = null, playerUiJs: String = "file:///android_asset/bitmovinplayer-ui.js", isHideFirstFrame: Boolean = false, scalingMode: ScalingMode = ScalingMode.Fit)

Properties

Link copied to clipboard
@SerializedName(value = "hideFirstFrame")
var isHideFirstFrame: Boolean = false

Whether the first frame of the main content will not be rendered before playback starts. Default is false.

Link copied to clipboard
@SerializedName(value = "ux")
var isUiEnabled: Boolean = true

Whether the Player UI is enabled. Default is true.

Link copied to clipboard
@SerializedName(value = "css")
var playerUiCss: String

The URI pointing to the CSS file that will be used for the Player UI. Default value is "file:///android_asset/bitmovinplayer-ui.css", using the local default UI style.

Link copied to clipboard
@SerializedName(value = "js")
var playerUiJs: String

The URI pointing to the JS file that will be used for the Player UI. Default value is "file:///android_asset/bitmovinplayer-ui.js", using the local default UI JS.

Link copied to clipboard
@SerializedName(value = "scalingMode")
var scalingMode: ScalingMode

Specifies how the video content is scaled or stretched within the parent container's bounds. Default is ScalingMode.Fit.

Link copied to clipboard
@SerializedName(value = "supplemental_css")
var supplementalPlayerUiCss: String? = null

The URI pointing to the supplemental CSS file that will be used for the Player UI. The contained styles will be added to the CSS file specified in playerUiCss. Default is null.