You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Damjan Dvorsek (JIRA)" <ji...@apache.org> on 2013/07/08 17:17:48 UTC

[jira] [Created] (CB-4091) Media onSuccess is not called when media.play()

Damjan Dvorsek created CB-4091:
----------------------------------

             Summary: Media onSuccess is not called when media.play() 
                 Key: CB-4091
                 URL: https://issues.apache.org/jira/browse/CB-4091
             Project: Apache Cordova
          Issue Type: Bug
          Components: BlackBerry
    Affects Versions: 2.9.0, 2.8.0, 2.7.0, 2.6.0, 2.5.0, 2.4.0, 2.3.0, 2.2.0, 2.1.0
            Reporter: Damjan Dvorsek
            Assignee: Lorin Beer


onSuccess function is not called when playing media with  media.play(). Testing on BB10z device with webinspector, there was no report of any error in the console. Using Ripple emulator (0.9.16) gives following error in the console:
"Received Media.onStatus callback for unknown media :: 0a9ec375-1a41-c7b3-ab35-3be99b281640"

If cordova 2.0.0 is used there is a different error in the console:
"Uncaught TypeError: Cannot set property '_duration' of undefined"   

I used "Full Example" that comes with media.play(), from documentation http://docs.phonegap.com/en/2.9.0/cordova_media_media.md.html#media.play
for testing.

In the case of cordova 2.0.0 onSuccess function is also not called after play ends, but it gets called if "stopAudio()" (which contains media.stop()) is called. This is not the case with versions 2.1.0 and above. 
     

  

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