You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Alexander Sorokin (JIRA)" <ji...@apache.org> on 2016/08/25 15:12:20 UTC

[jira] [Created] (CB-11757) media.stop() should call error callback when called in MEDIA_STARTING state

Alexander Sorokin created CB-11757:
--------------------------------------

             Summary: media.stop() should call error callback when called in MEDIA_STARTING state
                 Key: CB-11757
                 URL: https://issues.apache.org/jira/browse/CB-11757
             Project: Apache Cordova
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: iOS, Plugin Media
    Affects Versions: Master
            Reporter: Alexander Sorokin
            Assignee: Alexander Sorokin


On iOS, when calling media.stop() when media is in state MEDIA_STARTING (for example, the player is caching media file), we don't get any callback. And then, when the caching is completed, the media actually starts playing.

There are two options:
1. Send an error callback with the code MEDIA_ERR_NONE_ACTIVE
2. Stop the playback as soon as the caching is completed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org