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

StyleConfig
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

isHideFirstFrame
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.
isUiEnabled
Link copied to clipboard
@SerializedName(value = ux)
var isUiEnabled: Boolean = true
Whether the Player UI is enabled.
playerUiCss
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.
playerUiJs
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.
scalingMode
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.
supplementalPlayerUiCss
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.

Inherited functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)