commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADAudioVideoManager.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2016 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
#import <GoogleMobileAds/GADAudioVideoManagerDelegate.h> |
|
10 |
|
|
11 |
/// Provides audio and video notifications and configurations management. |
|
12 |
/// |
|
13 |
/// Don't create an instance of this class and use the one available from GADMobileAds |
|
14 |
/// sharedInstance's audioVideoManager. |
|
15 |
@interface GADAudioVideoManager : NSObject |
|
16 |
|
|
17 |
/// Delegate for receiving video and audio updates. |
|
18 |
@property(nonatomic, weak, nullable) id<GADAudioVideoManagerDelegate> delegate; |
|
19 |
|
|
20 |
/// Indicates whether the application wishes to manage audio session. If set as YES, the Google |
|
21 |
/// Mobile Ads SDK will stop managing AVAudioSession during the video playback lifecycle. If set as |
|
22 |
/// NO, the Google Mobile Ads SDK will control AVAudioSession. That may include: setting |
|
23 |
/// AVAudioSession's category to AVAudioSessionCategoryAmbient when all videos are muted, setting |
|
24 |
/// AVAudioSession's category to AVAudioSessionCategorySoloAmbient when any playing video becomes |
|
25 |
/// unmuted, and allowing background apps to continue playing sound when all videos rendered by |
|
26 |
/// Google Mobile Ads SDK are muted or have stopped playing. Must be accessed on main thread only. |
|
27 |
@property(nonatomic, assign) BOOL audioSessionIsApplicationManaged; |
|
28 |
|
|
29 |
@end |