You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2016/06/30 03:30:12 UTC

[jira] [Deleted] (CB-11503) iOS memory warning stops sound, but does not send status to JS-client

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

Shazron Abdullah deleted CB-11503:
----------------------------------


> iOS memory warning stops sound, but does not send status to JS-client
> ---------------------------------------------------------------------
>
>                 Key: CB-11503
>                 URL: https://issues.apache.org/jira/browse/CB-11503
>             Project: Apache Cordova
>          Issue Type: Bug
>         Environment: iOS 9.3 iPhone 6
>            Reporter: Thomas K.
>
> If iOS issues a memory warning while playing a sound, all sounds are terminated. However the ios/CDVSound.m plugin does not update the state of its JS-clients, so the last state the Client knows is Media.MEDIA_RUNNING, which is untrue after a memory warning. This results in incorrect clientside status.
> Problem: A user's software component may send pause() instead of play() (toggle button) effectively rendering the sound unplayable without recovery. This happened in our case.
> Fix: Send a correct message to update the status at the JS-client to Media.MEDIA_STOPPED.  
> https://github.com/apache/cordova-plugin-media/blob/master/src/ios/CDVSound.m#L814



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