GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADAudioVideoManager
@interface GADAudioVideoManager : NSObject
Provides audio and video notifications and configurations management.
Don’t create an instance of this class and use the one available from GADMobileAds
sharedInstance’s audioVideoManager.
-
Delegate for receiving video and audio updates.
Declaration
Swift
weak var delegate: (any AudioVideoManagerDelegate)? { get set }
-
Indicates whether the application wishes to manage audio session. If set as YES, the Google
Mobile Ads SDK will stop managing AVAudioSession during the video playback lifecycle. If set as
NO, the Google Mobile Ads SDK will control AVAudioSession. That may include: setting
AVAudioSession’s category to AVAudioSessionCategoryAmbient when all videos are muted, setting
AVAudioSession’s category to AVAudioSessionCategorySoloAmbient when any playing video becomes
unmuted, and allowing background apps to continue playing sound when all videos rendered by
Google Mobile Ads SDK are muted or have stopped playing. Must be accessed on main thread only.
Declaration
Swift
var isAudioSessionApplicationManaged: Bool { get set }
Objective-C
@property (nonatomic) BOOL audioSessionIsApplicationManaged;
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\u003eProvides notifications and manages configurations for audio and video within Google Mobile Ads.\u003c/p\u003e\n"],["\u003cp\u003eAccess the shared instance through \u003ccode\u003eGADMobileAds.sharedInstance.audioVideoManager\u003c/code\u003e instead of creating a new instance.\u003c/p\u003e\n"],["\u003cp\u003eOptionally set a delegate to receive video and audio updates.\u003c/p\u003e\n"],["\u003cp\u003eControl audio session management behavior using the \u003ccode\u003eaudioSessionIsApplicationManaged\u003c/code\u003e property, impacting how the SDK interacts with AVAudioSession.\u003c/p\u003e\n"]]],["GADAudioVideoManager manages audio and video notifications and configurations, accessed via `GADMobileAds`'s `sharedInstance`. It uses a delegate to receive updates. The `audioSessionIsApplicationManaged` property determines audio session control. When set to `YES`, the application manages it; when `NO`, the SDK manages it, potentially adjusting the `AVAudioSession` category based on video mute states and allowing background audio playback. This property must be accessed on the main thread.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADAudioVideoManager\n====================\n\n\n @interface GADAudioVideoManager : NSObject\n\nProvides audio and video notifications and configurations management.\n\nDon't create an instance of this class and use the one available from GADMobileAds\nsharedInstance's audioVideoManager.\n- `\n ``\n ``\n `\n\n ### [delegate](#/c:objc(cs)GADAudioVideoManager(py)delegate)\n\n `\n ` \n Delegate for receiving video and audio updates. \n\n #### Declaration\n\n Swift \n\n weak var delegate: (any AudioVideoManagerDelegate)? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) id\u003c../Protocols/GADAudioVideoManagerDelegate.html\u003e delegate;\n\n- `\n ``\n ``\n `\n\n ### [audioSessionIsApplicationManaged](#/c:objc(cs)GADAudioVideoManager(py)audioSessionIsApplicationManaged)\n\n `\n ` \n Indicates whether the application wishes to manage audio session. If set as YES, the Google\n Mobile Ads SDK will stop managing AVAudioSession during the video playback lifecycle. If set as\n NO, the Google Mobile Ads SDK will control AVAudioSession. That may include: setting\n AVAudioSession's category to AVAudioSessionCategoryAmbient when all videos are muted, setting\n AVAudioSession's category to AVAudioSessionCategorySoloAmbient when any playing video becomes\n unmuted, and allowing background apps to continue playing sound when all videos rendered by\n Google Mobile Ads SDK are muted or have stopped playing. Must be accessed on main thread only. \n\n #### Declaration\n\n Swift \n\n var isAudioSessionApplicationManaged: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL audioSessionIsApplicationManaged;"]]