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

Phonegap breaks audio in Android

    XMLWordPrintableJSON

Details

    Description

      Using the Media object, it is possible to play one or more audio files no more than a maximum of 7 times, at which point it becomes necessary to force quit the app to continue to have audio. This is the old phonegap issue #208, which was supposed to be fixed in 1.1.0.
      It happens presumably because "there are a finite amount of OpenCore instances for media playback" (http://docs.phonegap.com/en/1.0.0/phonegap_media_media.md.html). The documentation recommends using media.release() to free resources, but this function is broken. Instead of releasing the resource just used, it tries to release the next resource to be made available and so, depending on where it is used, either breaks audio altogether or has no effect at all. Once the limit is reached, the bug will also prevent any other applications from using audio until the original application is terminated.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            eggdeng Egg Deng
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: