Regression in Media/Sound.m since 0.8.0
---------------------------------------
Key: CB-59
URL: https://issues.apache.org/jira/browse/CB-59
Project: Apache Callback
Issue Type: Bug
Components: iOS
Reporter: Shazron Abdullah
reported at: https://github.com/phonegap/phonegap-iphone/issues/61
by: https://github.com/hardeep
When playing sounds with the Media function on device using EDGE PhoneGapLib
produces JavaScript execution halting. Media instances cannot be played
overlapping.
Expected result:
Sounds play without impacting JavaScript execution. One Media instance can be
played several times, overlapping, as in 0.8.0.
Actual Result:
When sound is played JavaScript execution is briefly halted, resulting in
animation lag, etc. Playing a Media object again interrupts currently playing
sound and starts over.
Steps to reproduce:
Create new PhoneGap project with EDGE PhoneGapLib.
Copy attached index.html and explode.wav into www folder.
Compile and execute on device.
Observe the problem by tapping play sound repetedly (the animation lags) and
sound cuts out.
Try the same in 0.8.0 PhoneGap project and experience smooth animation while
sounds plays perfect.
Device I have experienced this on:
2nd gen iPod touch
iPhoneOS 3.1.2
I dont expect this to be device specific.
Notes:
In PhoneGap 0.8.0 Media.play() behaved in almost the same way as Audio.play()
(native html5 audio JS function). In EDGE the functionality is much reduced in
my use case (arcade game).
[Original LightHouse
ticket](http://phonegap.lighthouseapp.com/projects/20116/tickets/60)
This ticket has 1 attachment(s).
--
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