[
https://issues.apache.org/jira/browse/CB-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Egg Deng updated CB-129:
------------------------
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.
was:
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 and, depending on where it is used, either breaks audio
altogether or has no effect at all. The bug will also prevent any other
applications from using audio.
> Phonegap breaks audio in Android
> --------------------------------
>
> Key: CB-129
> URL: https://issues.apache.org/jira/browse/CB-129
> Project: Apache Callback
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.1.0, 1.2.0
> Environment: Android
> Reporter: Egg Deng
> Labels: android, audio, issue#208, media
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira