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

Thomas Ling edited comment on CB-7599 at 12/4/14 3:45 PM:
----------------------------------------------------------

This is my current work around for it

   - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player 
successfully:(BOOL)flag
.....
  if (self.avSession) {
     /* Stop the player seems to get rid of the warning */
        [aPlayer stop];
        [aPlayer prepareToPlay];
        [self.avSession setActive:NO error:nil];
    }

....


was (Author: tling):
This is my current work around for it

   - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player 
successfully:(BOOL)flag
.....
  if (self.avSession) {
     // Stop the player seems to get rid of the warning
        [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]

Reply via email to