OOAudioSession.h
1 //
2 // OOAudioSession.h
3 // OoyalaSDK
4 //
5 // Copyright © 2018 Brightcove, Inc. All rights reserved.
6 //
7 
8 #ifndef OOAudioSession_h
9 #define OOAudioSession_h
10 
11 @import Foundation;
12 
13 @protocol OOAudioSessionDelegate <NSObject>
14 @optional
15 - (void)volumeChanged:(float)volume;
16 @end
17 
18 @interface OOAudioSession : NSObject
19 
20 @property (readonly) BOOL isMuted;
21 @property (nonatomic, readonly) float playerVolume;
22 @property (nonatomic, readonly) float deviceVolume;
23 @property (nonatomic, readonly) float applicationVolume;
24 @property (nonatomic, weak) id<OOAudioSessionDelegate> delegate;
25 
26 + (instancetype)sharedInstance;
27 
28 - (void)prioritize;
29 - (void)deprioritize;
30 
31 - (void)removeVolumeObserver:(NSObject *)observer;
32 - (void)addVolumeObserver:(NSObject *)observer;
33 - (void)disableSession;
34 - (void)volumeChanged:(float)systemVolume;
35 
36 @end
37 
38 #endif /* OOAudioSession_h */
39 
float playerVolume
Definition: OOAudioSession.h:21
instancetype sharedInstance()
float applicationVolume
Definition: OOAudioSession.h:23
BOOL isMuted
Definition: OOAudioSession.h:20
float deviceVolume
Definition: OOAudioSession.h:22
Definition: OOAudioSession.h:18
id< OOAudioSessionDelegate > delegate
Definition: OOAudioSession.h:24