GoogleMobileAds Framework Reference  |  iOS  |  Google for Developers | Latest TMZ Celebrity News & Gossip | Watch TMZ Live

GoogleMobileAds Framework Reference

GADVideoController


@interface GADVideoController : 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.

  • Delegate for receiving video notifications.

    Declaration

    Swift

    weak var delegate: (any GADVideoControllerDelegate)? { get set }

    Objective-C

    @property (nonatomic, weak, nullable) id<GADVideoControllerDelegate> delegate;
  • Indicates whether the video is muted. Set to YES to mute the video. Set to NO to allow the video to play sound. The setter doesn’t do anything if -customControlsEnabled returns NO.

    Declaration

    Swift

    var isMuted: Bool { get set }

    Objective-C

    @property (nonatomic, getter=isMuted) BOOL muted;
  • Indicates whether video custom controls (for example, play/pause/mute/unmute) are enabled.

    Declaration

    Swift

    var areCustomControlsEnabled: Bool { get }

    Objective-C

    @property (nonatomic, readonly, getter=areCustomControlsEnabled) BOOL customControlsEnabled;
  • Indicates whether video click to expand behavior is enabled.

    Declaration

    Swift

    var isClickToExpandEnabled: Bool { get }

    Objective-C

    @property (nonatomic, readonly, getter=isClickToExpandEnabled) BOOL clickToExpandEnabled;
  • Play the video. Doesn’t do anything if the video is already playing or if -customControlsEnabled returns NO.

    Declaration

    Swift

    func play()

    Objective-C

    - (void)play;
  • Pause the video. Doesn’t do anything if the video is already paused or if -customControlsEnabled- returns NO.

    Declaration

    Swift

    func pause()

    Objective-C

    - (void)pause;
  • Stops the video and displays the video’s first frame. Call -play to resume playback at the start of the video. Doesn’t do anything if -customControlsEnabled returns NO.

    Declaration

    Swift

    func stop()

    Objective-C

    - (void)stop;

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.