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
| StyleConfig | 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
| Name | Summary |
|---|---|
| isHideFirstFrame | @SerialName(value = "hideFirstFrame") var Whether the first frame of the main content will not be rendered before playback starts. Default is false. |
| isUiEnabled | @SerialName(value = "ux") var Whether the Player UI is enabled. Default is true. |
| playerUiCss | @SerialName(value = "css") var 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. |
| playerUiJs | @SerialName(value = "js") var 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. |
| scalingMode | @SerialName(value = "scalingMode") var Specifies how the video content is scaled or stretched within the parent container's bounds. Default is ScalingMode.Fit. |
| supplementalPlayerUiCss | @SerialName(value = "supplemental_css") var 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. |