cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbrebant <>
Subject [GitHub] cordova-plugin-media issue #33: Fixed the problem with multiple sounds not p...
Date Fri, 10 Jun 2016 09:26:35 GMT
Github user tbrebant commented on the issue:
    _(same comment as on Jira's CB-7684 ticket)_
    We arrived to the same conclusion as Nathan Stryker on Jira and @ionut-movila in this
    The problem for us is not only that when a media is finished it's stopping the others,
but also that `.release()` is killing all sounds running even if they were played by another
plugin (or by WebView's default webaudio system), triggering a descriptive:
    ``` -[AVAudioSession setActive:withOptions:error:]: Deactivating an
audio session that has running I/O. All I/O should be stopped or paused prior to deactivating
the audio session.
    We found that `AVAudioSession` is a singleton for the whole app (cf.
    Apple says:
    > 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.
    In our project we don't use the recording capacities. We removed all `avSession setActive:NO`
(as in this PR) and it's is working pretty well.
    Additionally it may be worth to update the comment:
    returns whether or not audioSession is available - creates it if necessary
    to something like:
    // returns whether or not audioSession is available - retrieve the instance (app singleton)
if necessary.
    If I am sending a PR, would anyone be able to test the recording feature?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message