You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Toufic Zayed (JIRA)" <ji...@apache.org> on 2016/07/07 14:24:11 UTC

[jira] [Created] (CB-11544) Unable to stream audio file in iOS 9.3.2 on iPhone 6 while in background (working in iPhone 5)

Toufic Zayed created CB-11544:
---------------------------------

             Summary: Unable to stream audio file in iOS 9.3.2 on iPhone 6 while in background (working in iPhone 5)
                 Key: CB-11544
                 URL: https://issues.apache.org/jira/browse/CB-11544
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Media
    Affects Versions: 2.3.0
         Environment: iOS 9.3.2 on iPhone 6
            Reporter: Toufic Zayed


Hello,

I'm working on a Ionic application that's supposed to play a playlist of media  in background mode.

The playlist is composed of mp3 files accessible on the internet (streaming).

Everything works fine on Android and event iPhone5 (iOS 9.3.2)

I only have a problem in iPhone 6 (iOS 9.3.2).

In iPhone 6, if I start my playlist while the application is in foreground, I can hear the audio. When I put the application in background (home button) I can continue to hear the same audio.

The problem appears at the end of the current audio, when I need to start the next audio. There is no sound at all.

While checking the messages in XCode, I can see:

"Unable to play audio (null)"

This is logged in the line 339 of the file CDVSound.m

My understanding is that we are failing to acquire an audio session, hence the message.

I don't know exactly why it happens only in iPhone 6.

Just for additional information, in my Ionic code, before I try to stream the new mp3 file, I first stop and release the current one (that is finished).

Thanks for your help.

Regards
TZ



--
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