Builder for VideoOptions.
| VideoOptions |
build()
Constructs a
VideoOptions
object with the specified attributes.
|
| VideoOptions.Builder |
setClickToExpandRequested(boolean clickToExpandRequested)
Sets whether the AdLoader should request ads with the Click to Expand behavior
enabled.
|
| VideoOptions.Builder |
setCustomControlsRequested(boolean customControlsRequested)
Requests custom video controls for video ads.
|
| VideoOptions.Builder |
setStartMuted(boolean startMuted)
Sets the initial mute state of the video.
|
Constructs a VideoOptions
object with the specified attributes.
Sets whether the AdLoader should request ads with the Click to Expand behavior enabled.
Requests custom video controls for video ads.
This feature is currently only available for DoubleClick for Publishers reservations.
Use
isCustomControlsEnabled() to verify if a loaded video ad has custom video
controls enabled.
After verification, you can then use play(),
pause(),
and mute(boolean)
to control the video ad.
Sets the initial mute state of the video.