[ 
https://issues.apache.org/jira/browse/CB-13243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637232#comment-16637232
 ] 

ASF GitHub Bot commented on CB-13243:
-------------------------------------

janpio closed pull request #147: CB-13243: (iOS) Reset default audio session 
category when release
URL: https://github.com/apache/cordova-plugin-media/pull/147
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m
index e1542871..1c2cd7b3 100644
--- a/src/ios/CDVSound.m
+++ b/src/ios/CDVSound.m
@@ -601,6 +601,7 @@ - (void)release:(CDVInvokedUrlCommand*)command
                 avPlayer = nil;
             }
             if (self.avSession) {
+                [self.avSession setCategory:AVAudioSessionCategorySoloAmbient 
error:nil];
                 [self.avSession setActive:NO error:nil];
                 self.avSession = nil;
             }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Don't reset default audio session category when release
> -------------------------------------------------------
>
>                 Key: CB-13243
>                 URL: https://issues.apache.org/jira/browse/CB-13243
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-media
>            Reporter: Yunseok Han
>            Priority: Major
>              Labels: ios
>
> When recording is released, don't set category.
> all audio output in app is not working.
> So have to set basic category of avsession to 
> AVAudioSessionCategorySoloAmbient



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to