You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org> on 2011/11/28 23:55:39 UTC

[jira] [Commented] (CB-59) Regression in Media/Sound.m since 0.8.0

    [ https://issues.apache.org/jira/browse/CB-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158894#comment-13158894 ] 

Shazron Abdullah commented on CB-59:
------------------------------------

by: bni (on lighthouseapp.com)

I think the root of this is in PhoneGap 0.8.0 AudioServicesPlaySystemSound was used to play sounds. Now AVAudioPlayer is used instead. I have, with my limited Objective-C knowledge, copy pasted a plugin based on the 0.8.0 code, that I use as a workaround.

by: http://github.com/becka11y

More info in these phongap group threads: http://groups.google.com/group/phonegap/browse_thread/thread/b35225c307113400/075fd91ad79ca159?lnk=gst&q=media+bni#075fd91ad79ca159

http://groups.google.com/group/phonegap/browse_thread/thread/d0e20cff2e024935/f1a39d710b68ef3e?lnk=gst&q=aiff#f1a39d710b68ef3e

                
> 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