A component of the ConfigurableVideoPlayer that manages the player controls.
Properties
Name | Type | Description | Default |
---|---|---|---|
color | uint | The color of the buttons. |
|
overlayControls | Boolean | Whether or not the controls overlay on top of the video. | false |
playOverlayAsset | String | Optional asset for the poster. | null |
style | String | The style of the buttons. | round |
Constructors
ConfigurableVideoControlBar(configurableVideoPlayer:
ConfigurableVideoPlayer)
:
void
Instance Methods
Defined in com.google.ads.studio.video:ConfigurableVideoControlBar
addFullScreenButton()
:
ConfigurableVideoControlBar
Adds a full screen button, if one had not already been added.
addInvitationOverlay()
:
ConfigurableVideoControlBar
Adds an invitation overlay, if one had not already been added.
addPlayButton()
:
ConfigurableVideoControlBar
Adds a play/pause button, if one had not already been added.
addReplayButton()
:
ConfigurableVideoControlBar
Adds a replay button, if one had not already been added.
addScrubber()
:
ConfigurableVideoControlBar
Adds a video scrubber, if one had not already been added.
addSoundToggleButton()
:
ConfigurableVideoControlBar
Adds a sound toggle button, if one had not already been added.
addStopButton()
:
ConfigurableVideoControlBar
Adds a stop button, if one had not already been added.
getColor()
:
uint
Gets the color of this control.
getStyle()
:
String
Gets the style of this control.
setColorAndStyle(color:uint, style:String)
:
void
Sets the color and the style of this control.
unload()
:
void
Unloads the control bar for cleanup.
updateDisplay()
:
void
Updates the display of the player controls.