Stay organized with collections
Save and categorize content based on your preferences.
GADVideoController
classGADVideoController:NSObject
The video controller class provides a way to get the video metadata and also manages video
content of the ad rendered by the Google Mobile Ads SDK. You don’t need to create an instance of
this class. When the ad rendered by the Google Mobile Ads SDK loads video content, you may be
able to get an instance of this class from the rendered ad object.
Stops the video and displays the video’s first frame. Call -play to resume playback at the start
of the video. Contact your account manager to enable this feature.
[[["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 2021-03-03 UTC."],[],[],null,["# GoogleMobileAds Framework Reference\n\nGADVideoController\n==================\n\n class GADVideoController : NSObject\n\nThe video controller class provides a way to get the video metadata and also manages video\ncontent of the ad rendered by the Google Mobile Ads SDK. You don't need to create an instance of\nthis class. When the ad rendered by the Google Mobile Ads SDK loads video content, you may be\nable to get an instance of this class from the rendered ad object.\n- `\n ``\n ``\n `\n\n ### [delegate](#/c:objc(cs)GADVideoController(py)delegate)\n\n `\n ` \n Delegate for receiving video notifications.\n- `\n ``\n ``\n `\n\n ### [setMute(_:)](#/c:objc(cs)GADVideoController(im)setMute:)\n\n `\n ` \n Mute or unmute video. Set to YES to mute the video. Set to NO to allow the video to play sound. \n\n #### Declaration\n\n Swift \n\n func setMute(_ mute: Bool)\n\n- `\n ``\n ``\n `\n\n ### [play()](#/c:objc(cs)GADVideoController(im)play)\n\n `\n ` \n Play the video. Doesn't do anything if the video is already playing. \n\n #### Declaration\n\n Swift \n\n func play()\n\n- `\n ``\n ``\n `\n\n ### [pause()](#/c:objc(cs)GADVideoController(im)pause)\n\n `\n ` \n Pause the video. Doesn't do anything if the video is already paused. \n\n #### Declaration\n\n Swift \n\n func pause()\n\n- `\n ``\n ``\n `\n\n ### [stop()](#/c:objc(cs)GADVideoController(im)stop)\n\n `\n ` \n Stops the video and displays the video's first frame. Call -play to resume playback at the start\n of the video. Contact your account manager to enable this feature. \n\n #### Declaration\n\n Swift \n\n func stop()\n\n- `\n ``\n ``\n `\n\n ### [hasVideoContent()](#/c:objc(cs)GADVideoController(im)hasVideoContent)\n\n `\n ` \n Returns a Boolean indicating if the receiver has video content. \n\n #### Declaration\n\n Swift \n\n func hasVideoContent() -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [aspectRatio()](#/c:objc(cs)GADVideoController(im)aspectRatio)\n\n `\n ` \n Returns the video's aspect ratio (width/height) or 0 if no video is present. \n\n #### Declaration\n\n Swift \n\n func aspectRatio() -\u003e Double\n\n- `\n ``\n ``\n `\n\n ### [customControlsEnabled()](#/c:objc(cs)GADVideoController(im)customControlsEnabled)\n\n `\n ` \n Indicates whether video custom controls (i.e. play/pause/mute/unmute) are enabled. \n\n #### Declaration\n\n Swift \n\n func customControlsEnabled() -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [clickToExpandEnabled()](#/c:objc(cs)GADVideoController(im)clickToExpandEnabled)\n\n `\n ` \n Indicates whether video click to expand behavior is enabled. \n\n #### Declaration\n\n Swift \n\n func clickToExpandEnabled() -\u003e Bool"]]