public class StyleConfiguration
extends Configuration
Contains configuration values which can be used to alter the visual presentation and behaviour of the player UI.
public static android.os.Parcelable.Creator<com.bitmovin.player.config.StyleConfiguration> CREATOR
public boolean getUiEnabled()
public void setUiEnabled(boolean uiEnabled)
Sets if the the UI should be enabled. Default value is true
.
uiEnabled
- true if the UI should be enabled.public boolean getShowErrors()
public void setShowErrors(boolean showErrors)
public boolean isUiEnabled()
Returns if the UI is enabled.
public boolean isShowErrors()
public java.lang.String getPlayerUiCss()
Returns the URI to the CSS file that will be used for the UI.
public void setPlayerUiCss(java.lang.String playerUiCss)
Sets the URI to the CSS file that will be used for the UI. Default value is "file:///android_asset/bitmovinplayer-ui.css"
, using the local default UI style.
playerUiCss
- The URI to the CSS file that will be used for the UI.public java.lang.String getPlayerUiJs()
Returns the URI to the JS file that will be used for the UI.
public void setPlayerUiJs(java.lang.String playerUiJs)
Sets the URI to the JS file that will be used for the UI. Default value is "file:///android_asset/bitmovinplayer-ui.js"
, using the local default UI JS.
playerUiJs
- The URI to the JS file that will be used for the UI.@Nullable public java.lang.String getSupplementalPlayerUiCss()
Returns the URI to the supplemental CSS file that will be used for the UI.
public void setSupplementalPlayerUiCss(java.lang.String supplementalPlayerUiCss)
Set a CSS file which contains supplemental styles for the player UI. These styles will be added to the default CSS file or the CSS file set with
. com.bitmovin.player.config.StyleConfiguration$setPlayerUiCss(java.lang.String)
Default value is null
.
supplementalPlayerUiCss
- The URI to the supplemental CSS file.com.bitmovin.player.config.StyleConfiguration$setPlayerUiCss(java.lang.String)
public boolean isHideFirstFrame()
Returns if the first frame of the main content will not be rendered before playback starts.
true
if the first frame is hidden.public void setHideFirstFrame(boolean hideFirstFrame)
Sets if the first frame of the main content will not be rendered before playback starts. Default value is false
.
hideFirstFrame
- true
if the first frame should be hidden.public void writeToParcel(android.os.Parcel dest, int flags)
public ScalingMode getScalingMode()
Returns the current `ScalingMode`.
public void setScalingMode(ScalingMode scalingMode)
Determines how the video content is scaled or stretched within the parent container's bounds. Possible values are defined in ScalingMode. Default value is ScalingMode.Fit
.