[
https://issues.apache.org/jira/browse/CB-7599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234284#comment-14234284
]
Thomas Ling commented on CB-7599:
---------------------------------
This is my current work around for -
(void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player
successfully:(BOOL)flag
.....
if (self.avSession) {
[aPlayer stop];
[aPlayer prepareToPlay];
[self.avSession setActive:NO error:nil];
}
....
> [Media][iOS 8] Audio exceptions generated when playing audio files
> ------------------------------------------------------------------
>
> Key: CB-7599
> URL: https://issues.apache.org/jira/browse/CB-7599
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: Plugin Media
> Affects Versions: 3.5.0
> Environment: iOS
> Reporter: Dooms
> Attachments: index.js
>
>
> In iOS8, several users have noticed that applications with audio that
> previously worked in iOS7, are generating exceptions in iOS8.
> In my app, it is when pausing one audio, and after a short timeout, playing
> another audio. 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.
> In another case (Paul's comment below), it was when scrubbing through a
> single audio file. The error:
> ERROR: [0x109894000] 79: AudioQueuePrime posting message to kill mediaserverd
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]