cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
Date Thu, 13 Apr 2017 08:56:42 GMT

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

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

Github user katzlbt commented on the issue:

    https://github.com/apache/cordova-plugin-media/pull/100
  
    Sending setActiveNo: to an audio session will always stop recording and playback. This
is how the system handles incoming phonecalls etc.
    
    > Most apps never need to deactivate their audio session explicitly. Important exceptions
include VoIP (Voice over Internet Protocol) apps, turn-by-turn navigation apps, and, in some
cases, recording apps. (https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/ConfiguringanAudioSession/ConfiguringanAudioSession.html)
    
    Probably you are out of luck for waiting it out, unless you have a year or so. This PR
and another that fixes that Audio is disabled after every memory warning are open for ages
(https://github.com/apache/cordova-plugin-media/pull/120). I apply the patches manually like
this:
    
    `
                wget https://github.com/apache/cordova-plugin-media/pull/120.patch
                patch -p1 <120.patch
                
                wget https://github.com/apache/cordova-plugin-media/pull/116.patch
                patch -p1 <116.patch
                
                wget https://github.com/apache/cordova-plugin-media/pull/100.patch
                patch -p1 <100.patch
    `



> [Media] CDVSound Kills any and all playing sound files when a single file finishes
> ----------------------------------------------------------------------------------
>
>                 Key: CB-7684
>                 URL: https://issues.apache.org/jira/browse/CB-7684
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Media
>    Affects Versions: 3.5.0
>         Environment: iOS
>            Reporter: Nathan Stryker
>
> The CDVSound file will kill all playing media files when ever a single file completes
playing. The issue is around like 691 in the method "AudioDidFinishPlaying", with the code:
>     if (self.avSession) {
>         [self.avSession setActive:NO error:nil];
> }
> The reason I think this is a bug is that if a user as Music file A playing in a loop
and Music file B plays, when B completes the "setActive:NO" will kill the avSession of both
A and B. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message