Skip to content

Commit

Permalink
Update CDVSound.m
Browse files Browse the repository at this point in the history
  • Loading branch information
proggeramlug authored May 6, 2021
1 parent 3203f8e commit 16b4265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ios/CDVSound.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ Licensed to the Apache Software Foundation (ASF) under one

@implementation CDVSound

BOOL keepAvAudioSessionAlwaysActive = NO;
BOOL keepAvAudioSessionAlwaysActive = YES;

@synthesize soundCache, avSession, currMediaId, statusCallbackId;

-(void) pluginInitialize
{
NSDictionary* settings = self.commandDelegate.settings;
keepAvAudioSessionAlwaysActive = [[settings objectForKey:[@"KeepAVAudioSessionAlwaysActive" lowercaseString]] boolValue];
keepAvAudioSessionAlwaysActive = YES; // [[settings objectForKey:[@"KeepAVAudioSessionAlwaysActive" lowercaseString]] boolValue];
if (keepAvAudioSessionAlwaysActive) {
if ([self hasAudioSession]) {
NSError* error = nil;
Expand Down

0 comments on commit 16b4265

Please sign in to comment.