[ 
https://issues.apache.org/jira/browse/CB-11757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Sorokin updated CB-11757:
-----------------------------------
    Description: 
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.

The proposed fix is that when media.stop() is called in an invalid state, the 
plugin should send an error callback with the code MEDIA_ERR_NONE_ACTIVE

Another approach would be to stop the media as soon as it will stop caching. 
One possible advantage of this over the proposed fix would be that 
MEDIA_ERR_NONE_ACTIVE is not in w3c spec.


  was:
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.

The proposed fix is that when media.stop() is called in an invalid state, the 
plugin should send an error callback with the code MEDIA_ERR_NONE_ACTIVE



> 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
>              Labels: triaged
>
> 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.
> The proposed fix is that when media.stop() is called in an invalid state, the 
> plugin should send an error callback with the code MEDIA_ERR_NONE_ACTIVE
> Another approach would be to stop the media as soon as it will stop caching. 
> One possible advantage of this over the proposed fix would be that 
> MEDIA_ERR_NONE_ACTIVE is not in w3c spec.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to