Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB977196C7 for ; Mon, 11 Apr 2016 21:16:26 +0000 (UTC) Received: (qmail 84877 invoked by uid 500); 11 Apr 2016 21:16:26 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 84831 invoked by uid 500); 11 Apr 2016 21:16:26 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 84310 invoked by uid 99); 11 Apr 2016 21:16:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 21:16:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A2EEA2C1F6B for ; Mon, 11 Apr 2016 21:16:25 +0000 (UTC) Date: Mon, 11 Apr 2016 21:16:25 +0000 (UTC) From: "Nikhil Khandelwal (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-11026) iOS 9.3: media.release() kills all running audio files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-11026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nikhil Khandelwal updated CB-11026: ----------------------------------- Labels: ios ios9 media release triaged (was: ios ios9 media release) > iOS 9.3: media.release() kills all running audio files > ------------------------------------------------------ > > Key: CB-11026 > URL: https://issues.apache.org/jira/browse/CB-11026 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media > Environment: I could only test it on iOS 9.3 > Reporter: Kramer > Labels: ios, ios9, media, release, triaged > > I got two media objects > var media1 = new Media("file1.mp3"); > var media2 = new Media("file2.mp3"); > When I call the media2.release() method while media1 is playing, then an error will popup in XCode and media1 is stopping imediatelly. > The error message is: > {quote} > AVAudioSession.mm:692: -[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. > {quote} > When I comment the line > {quote} > [self.avSession setActive:NO error:nil]; > {quote} > in the release method of the CDVSound.m file then the error disappears and media1 is continuing playing after I invoked media2.release(). > Tested on v2.2.0 and v1.0.1 of the cordova-plugin-media plugin. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org