StyleConfig

data class StyleConfig(var isUiEnabled: Boolean = true, var playerUiCss: String = "file:///android_asset/bitmovinplayer-ui.css", var supplementalPlayerUiCss: String? = null, var playerUiJs: String = "file:///android_asset/bitmovinplayer-ui.js", var isHideFirstFrame: Boolean = false, var scalingMode: ScalingMode = ScalingMode.Fit) : Parcelable

Deprecated

Use `PlayerViewConfig` on the `PlayerView` instead.

Configures visual presentation and behaviour of the Player UI.

This class is deprecated. Use PlayerViewConfig on the PlayerView instead.

Constructors

Link copied to clipboard
constructor(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
@SerialName(value = "hideFirstFrame")
var isHideFirstFrame: Boolean

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

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

Whether the Player UI is enabled. Default is true.

Link copied to clipboard
@SerialName(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
@SerialName(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
@SerialName(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
@SerialName(value = "supplemental_css")
var supplementalPlayerUiCss: String?

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.