File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 44
55#import " ChildBrowserCommand.h"
66#import < Cordova/CDVViewController.h>
7+ #import < AVFoundation/AVFoundation.h>
78
89@implementation ChildBrowserCommand
910
1011@synthesize childBrowser;
1112
1213- (void )showWebPage : (NSMutableArray *)arguments withDict : (NSMutableDictionary *)options // args: url
1314{
15+ /* setting audio session category to "Playback" (since iOS 6) */
16+ AVAudioSession *audioSession = [AVAudioSession sharedInstance ];
17+ NSError *setCategoryError = nil ;
18+ BOOL ok = [audioSession setCategory: AVAudioSessionCategoryPlayback error: &setCategoryError];
19+ if (!ok) {
20+ NSLog (@" Error setting AVAudioSessionCategoryPlayback: %@ " , setCategoryError);
21+ };
22+
1423 if (self.childBrowser == nil ) {
1524#if __has_feature(objc_arc)
1625 self.childBrowser = [[ChildBrowserViewController alloc ] initWithScale: NO ];
You can’t perform that action at this time.
0 commit comments