[
https://issues.apache.org/jira/browse/CB-2270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon MacDonald resolved CB-2270.
---------------------------------
Resolution: Not A Problem
There shouldn't be any audio in that case. You are calling an async method so
program execution continues and you then call release. Look at the constructor
of the Media it provides a success callback when play completes. Put your
release call in it.
> NO SOUND AT ALL ----> issuing a media.release() immediately after a
> media.play()
> --------------------------------------------------------------------------------
>
> Key: CB-2270
> URL: https://issues.apache.org/jira/browse/CB-2270
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.3.0
> Environment: Xcode Version 4.5.2 (4G2008a)/ Cordova 2.3.0rc1/ iPhone
> 3G and 4S
> Reporter: Daniel Bertrand
> Assignee: Shazron Abdullah
>
> No audio when I do this:
> var my_media = new Media("scanning.mp3");
> my_media.play();
> my_media.release();
> but you can hear audio when I do this:
> var my_media = new Media("scanning.mp3");
> my_media.play();
> Couldn't you just defer my_media.release() until my_media.play is completed
> or interrupted by my_media.pause etc?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira