Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11544

Unable to stream audio file in iOS 9.3.2 on iPhone 6 while in background (working in iPhone 5)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • Ionic
    • iOS 9.3.2 on iPhone 6

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            toufic_zayed@radiolike.com Toufic Zayed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: