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.
[[["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-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,["GADVideoControllerDelegate \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 Tells the delegate that the video controller has began or resumed playing a video. \n\n Declaration \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 Tells the delegate that the video controller has paused video. \n\n Declaration \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 Tells the delegate that the video controller's video playback has ended. \n\n Declaration \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 Tells the delegate that the video controller has muted video. \n\n Declaration \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 Tells the delegate that the video controller has unmuted video. \n\n Declaration \n Swift \n\n optional func videoControllerDidUnmuteVideo(_ videoController: VideoController)\n\n Objective-C \n\n - (void)videoControllerDidUnmuteVideo:\n (nonnull ../Classes/GADVideoController.html *)videoController;"]]