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-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eVideoOptions\u003c/code\u003e offers control over video playback within supported ad formats.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a \u003ccode\u003eVideoOptions\u003c/code\u003e object to customize video behavior.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eClickToExpandRequested\u003c/code\u003e allows you to set whether videos should have the click-to-expand feature.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomControlsRequested\u003c/code\u003e enables or disables custom play/pause/mute/unmute controls for the video.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStartMuted\u003c/code\u003e lets you determine if videos should initially be muted upon playback.\u003c/p\u003e\n"]]],["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"],null,["# GoogleMobileAds.Api.VideoOptions Class Reference\n\nGoogleMobileAds.Api.VideoOptions\n================================\n\nOptions for controlling video playback in supported ad formats.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [VideoOptions](#class_google_mobile_ads_1_1_api_1_1_video_options_1a4c2c6cca5af6f0c699b3904a1e3412a8)`()` Create a new [VideoOptions](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/video-options#class_google_mobile_ads_1_1_api_1_1_video_options) object. ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [ClickToExpandRequested](#class_google_mobile_ads_1_1_api_1_1_video_options_1a27990391e58f1e4d316a3e5c2fe23dc6) | `bool` Indicates whether the requested video should have the click to expand behavior. |\n| [CustomControlsRequested](#class_google_mobile_ads_1_1_api_1_1_video_options_1a7983f626f16badf706438ee91454fad6) | `bool` Indicates whether the requested video should have custom controls enabled for play/pause/mute/unmute. |\n| [StartMuted](#class_google_mobile_ads_1_1_api_1_1_video_options_1a444efc8b3a721b50df41473b7db30fc3) | `bool` Indicates whether videos should start muted. |\n\nPublic attributes\n-----------------\n\n### ClickToExpandRequested\n\n```c#\nbool ClickToExpandRequested\n``` \nIndicates whether the requested video should have the click to expand behavior. \n\n### CustomControlsRequested\n\n```c#\nbool CustomControlsRequested\n``` \nIndicates whether the requested video should have custom controls enabled for play/pause/mute/unmute. \n\n### StartMuted\n\n```c#\nbool StartMuted\n``` \nIndicates whether videos should start muted.\n\nPublic functions\n----------------\n\n### VideoOptions\n\n```c#\n VideoOptions()\n``` \nCreate a new [VideoOptions](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/video-options#class_google_mobile_ads_1_1_api_1_1_video_options) object."]]