You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Daniel Bertrand (JIRA)" <ji...@apache.org> on 2013/01/19 01:16:13 UTC

[jira] [Created] (CB-2270) NO SOUND AT ALL ----> issuing a media.release() immediately after a media.play()

Daniel Bertrand created CB-2270:
-----------------------------------

             Summary: 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