You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Quoc Tran (JIRA)" <ji...@apache.org> on 2015/04/11 01:10:13 UTC

[jira] [Commented] (CB-7599) [Media][iOS 8] Audio exceptions generated when playing audio files

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

Quoc Tran commented on CB-7599:
-------------------------------

Does the previous code still cause the audioPlayerDidFinishPlaying to run?

I ran into the same issue, and did what other folks had mentioned, commenting out the following block within
- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player successfully:(BOOL)flag

    // if (self.avSession) {
    //     [self.avSession setActive:NO error:nil];
    // }

Ostensibly, you wouldn't even need to stop the AVAudioPlayer since this is a callback that occurs when an audio player has finished playing.

> [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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org