Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.VideoOptions
Options for controlling video playback in supported ad formats.
Summary
Public attributes
|
ClickToExpandRequested
|
bool
Indicates whether the requested video should have the click to expand behavior.
|
CustomControlsRequested
|
bool
Indicates whether the requested video should have custom controls enabled for play/pause/mute/unmute.
|
StartMuted
|
bool
Indicates whether videos should start muted.
|
Public attributes
ClickToExpandRequested
bool ClickToExpandRequested
Indicates whether the requested video should have the click to expand behavior.
CustomControlsRequested
bool CustomControlsRequested
Indicates whether the requested video should have custom controls enabled for play/pause/mute/unmute.
StartMuted
bool StartMuted
Indicates whether videos should start muted.
Public functions
VideoOptions
VideoOptions()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-07 UTC."],[[["`VideoOptions` offers control over video playback within supported ad formats."],["You can create a `VideoOptions` object to customize video behavior."],["`ClickToExpandRequested` allows you to set whether videos should have the click-to-expand feature."],["`CustomControlsRequested` enables or disables custom play/pause/mute/unmute controls for the video."],["`StartMuted` lets you determine if videos should initially be muted upon playback."]]],["The `VideoOptions` class controls video playback in ads. It allows users to create a new `VideoOptions` object and set three key attributes. `ClickToExpandRequested` enables click-to-expand behavior. `CustomControlsRequested` allows enabling custom controls for play, pause, mute, and unmute. `StartMuted` dictates if videos should initially play without sound. These attributes, set as booleans, modify how videos behave within the supported ad formats.\n"]]