GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADVideoControllerDelegate
@protocol GADVideoControllerDelegate <NSObject>
The GADVideoControllerDelegate protocol defines methods that are called by the video controller
object in response to the video events that occurred throughout the lifetime of the video
rendered by an ad.
-
Tells the delegate that the video controller has began or resumed playing a video.
Declaration
Swift
optional func videoControllerDidPlayVideo(_ videoController: VideoController)
Objective-C
- (void)videoControllerDidPlayVideo:
(nonnull GADVideoController *)videoController;
-
Tells the delegate that the video controller has paused video.
Declaration
Swift
optional func videoControllerDidPauseVideo(_ videoController: VideoController)
Objective-C
- (void)videoControllerDidPauseVideo:
(nonnull GADVideoController *)videoController;
-
Tells the delegate that the video controller’s video playback has ended.
Declaration
Swift
optional func videoControllerDidEndVideoPlayback(_ videoController: VideoController)
Objective-C
- (void)videoControllerDidEndVideoPlayback:
(nonnull GADVideoController *)videoController;
-
Tells the delegate that the video controller has muted video.
Declaration
Swift
optional func videoControllerDidMuteVideo(_ videoController: VideoController)
Objective-C
- (void)videoControllerDidMuteVideo:
(nonnull GADVideoController *)videoController;
-
Tells the delegate that the video controller has unmuted video.
Declaration
Swift
optional func videoControllerDidUnmuteVideo(_ videoController: VideoController)
Objective-C
- (void)videoControllerDidUnmuteVideo:
(nonnull GADVideoController *)videoController;
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\u003eThe \u003ccode\u003eGADVideoControllerDelegate\u003c/code\u003e protocol provides methods to track video events within an ad, such as play, pause, end, mute, and unmute.\u003c/p\u003e\n"],["\u003cp\u003eThese methods inform the delegate about changes in the video's playback state, allowing for customized responses to these events.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can implement these optional methods to monitor and manage the video playback experience within their ad integrations.\u003c/p\u003e\n"],["\u003cp\u003eDelegates are notified through calls to methods like \u003ccode\u003evideoControllerDidPlayVideo\u003c/code\u003e, \u003ccode\u003evideoControllerDidPauseVideo\u003c/code\u003e, etc., providing context about the specific event.\u003c/p\u003e\n"]]],["The `GADVideoControllerDelegate` protocol informs the delegate about video events. It includes methods triggered when the video controller: starts or resumes playing (`videoControllerDidPlayVideo`), pauses (`videoControllerDidPauseVideo`), ends playback (`videoControllerDidEndVideoPlayback`), mutes (`videoControllerDidMuteVideo`), or unmutes (`videoControllerDidUnmuteVideo`). These methods provide the video controller instance that triggers the callback to the delegate. All methods are optional and called in response to events during the ad video's lifetime.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADVideoControllerDelegate\n==========================\n\n @protocol GADVideoControllerDelegate \u003cNSObject\u003e\n\nThe GADVideoControllerDelegate protocol defines methods that are called by the video controller\nobject in response to the video events that occurred throughout the lifetime of the video\nrendered by an ad.\n- `\n ``\n ``\n `\n\n ### [-videoControllerDidPlayVideo:](#/c:objc(pl)GADVideoControllerDelegate(im)videoControllerDidPlayVideo:)\n\n `\n ` \n Tells the delegate that the video controller has began or resumed playing a video. \n\n #### Declaration\n\n Swift \n\n optional func videoControllerDidPlayVideo(_ videoController: VideoController)\n\n Objective-C \n\n - (void)videoControllerDidPlayVideo:\n (nonnull ../Classes/GADVideoController.html *)videoController;\n\n- `\n ``\n ``\n `\n\n ### [-videoControllerDidPauseVideo:](#/c:objc(pl)GADVideoControllerDelegate(im)videoControllerDidPauseVideo:)\n\n `\n ` \n Tells the delegate that the video controller has paused video. \n\n #### Declaration\n\n Swift \n\n optional func videoControllerDidPauseVideo(_ videoController: VideoController)\n\n Objective-C \n\n - (void)videoControllerDidPauseVideo:\n (nonnull ../Classes/GADVideoController.html *)videoController;\n\n- `\n ``\n ``\n `\n\n ### [-videoControllerDidEndVideoPlayback:](#/c:objc(pl)GADVideoControllerDelegate(im)videoControllerDidEndVideoPlayback:)\n\n `\n ` \n Tells the delegate that the video controller's video playback has ended. \n\n #### Declaration\n\n Swift \n\n optional func videoControllerDidEndVideoPlayback(_ videoController: VideoController)\n\n Objective-C \n\n - (void)videoControllerDidEndVideoPlayback:\n (nonnull ../Classes/GADVideoController.html *)videoController;\n\n- `\n ``\n ``\n `\n\n ### [-videoControllerDidMuteVideo:](#/c:objc(pl)GADVideoControllerDelegate(im)videoControllerDidMuteVideo:)\n\n `\n ` \n Tells the delegate that the video controller has muted video. \n\n #### Declaration\n\n Swift \n\n optional func videoControllerDidMuteVideo(_ videoController: VideoController)\n\n Objective-C \n\n - (void)videoControllerDidMuteVideo:\n (nonnull ../Classes/GADVideoController.html *)videoController;\n\n- `\n ``\n ``\n `\n\n ### [-videoControllerDidUnmuteVideo:](#/c:objc(pl)GADVideoControllerDelegate(im)videoControllerDidUnmuteVideo:)\n\n `\n ` \n Tells the delegate that the video controller has unmuted video. \n\n #### Declaration\n\n Swift \n\n optional func videoControllerDidUnmuteVideo(_ videoController: VideoController)\n\n Objective-C \n\n - (void)videoControllerDidUnmuteVideo:\n (nonnull ../Classes/GADVideoController.html *)videoController;"]]