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

John Harrison edited comment on CB-7599 at 9/22/14 2:22 PM:
------------------------------------------------------------

The error is triggered as soon as a second media object is created/played while 
a first media object is already playing. To reproduce
cordova create testmp3
cordova platform add ios
cordova plugin add org.apache.cordova.media
(replace index.js with attached file: 
https://issues.apache.org/jira/secure/attachment/12670421/index.js)
make directory "snd" inside www and add 2 copies of this file: 
https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3
name them mpthreetest.mp3 and mpthreetest2.mp3
cordova prepare

The problem is bigger than the error report itself. Related to the error, other 
media objects can be delayed in playing after the error is triggered. Some 
audio objects set to loop will stop. (Sorry, I don't have trivial examples of 
these problems yet, but I am seeing these problems. It could be these problems 
are aggravated by this problem as well: 
https://groups.google.com/forum/#!topic/phonegap/Zb7NQsr6wCQ) 

Tested on Cordova 3.5.0-0.2.7, Media Plugin 0.2.12, Xcode 6, iOS 8



was (Author: whyameye):
The error is triggered as soon as a second media object is created/played while 
a first media object is already playing. To reproduce
cordova create testmp3
cordova platform add ios
cordova plugin add org.apache.cordova.media
(replace index.js with attached file)
make directory "snd" inside www and add 2 copies of this file: 
https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3
name them mpthreetest.mp3 and mpthreetest2.mp3
cordova prepare

The problem is bigger than the error report itself. Related to the error, other 
media objects can be delayed in playing after the error is triggered. Some 
audio objects set to loop will stop. (Sorry, I don't have trivial examples of 
these problems yet, but I am seeing these problems. It could be these problems 
are aggravated by this problem as well: 
https://groups.google.com/forum/#!topic/phonegap/Zb7NQsr6wCQ) 

Tested on Cordova 3.5.0-0.2.7, Media Plugin 0.2.12, Xcode 6, iOS 8


> Audio exception in iOS8
> -----------------------
>
>                 Key: CB-7599
>                 URL: https://issues.apache.org/jira/browse/CB-7599
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.5.0
>            Reporter: Dooms
>            Priority: Minor
>         Attachments: index.js
>
>
> In iOS8, exceptions are generated when pausing one audio and playing another. 
> Sorry I haven't been able to debug the issue further at this time.
> The exception:
> AVAudioSession.mm:646: -[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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to