commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADAudioVideoManagerDelegate.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2016 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
@class GADAudioVideoManager; |
|
11 |
|
|
12 |
/// A set of methods to inform the delegate of audio video manager events. |
|
13 |
@protocol GADAudioVideoManagerDelegate <NSObject> |
|
14 |
|
|
15 |
@optional |
|
16 |
|
|
17 |
/// Tells the delegate that the Google Mobile Ads SDK will start playing a video. This method isn't |
|
18 |
/// called if another video rendered by Google Mobile Ads SDK is already playing. |
|
19 |
- (void)audioVideoManagerWillPlayVideo:(nonnull GADAudioVideoManager *)audioVideoManager; |
|
20 |
|
|
21 |
/// Tells the delegate that the Google Mobile Ads SDK has paused/stopped all video playback. |
|
22 |
- (void)audioVideoManagerDidPauseAllVideo:(nonnull GADAudioVideoManager *)audioVideoManager; |
|
23 |
|
|
24 |
/// Tells the delegate that at least one video rendered by the Google Mobile Ads SDK will play |
|
25 |
/// sound. Your app should stop playing sound when this method is called. |
|
26 |
- (void)audioVideoManagerWillPlayAudio:(nonnull GADAudioVideoManager *)audioVideoManager; |
|
27 |
|
|
28 |
/// Tells the delegate that all the video rendered by the Google Mobile Ads SDK has stopped playing |
|
29 |
/// sound. Your app can now resume any music playback or produce any kind of sound. Note that this |
|
30 |
/// message doesn't mean that all the video has stopped playing, just audio, so you shouldn't |
|
31 |
/// deactivate AVAudioSession's instance. Doing so can lead to unexpected video playback behavior. |
|
32 |
/// You may deactivate AVAudioSession only when all rendered video ads are paused or have finished |
|
33 |
/// playing, and 'audioVideoDidPauseAllVideo:' is called. |
|
34 |
- (void)audioVideoManagerDidStopPlayingAudio:(nonnull GADAudioVideoManager *)audioVideoManager; |
|
35 |
|
|
36 |
@end |