cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11513) iOS memory warning stops sound, but does not send status to JS-client
Date Tue, 22 Aug 2017 08:20:00 GMT


ASF GitHub Bot commented on CB-11513:

Github user ghenry22 commented on the issue:
    could this get merged? I have been maintaining a forked plugin for months with this PR
merged and it works well.

> iOS memory warning stops sound, but does not send status to JS-client
> ---------------------------------------------------------------------
>                 Key: CB-11513
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-media
>    Affects Versions: 3.6.3, 4.1.3, 6.4.0
>         Environment: iOS 9 and iOS 10
>            Reporter: Thomas K.
>              Labels: easyfix
> 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: Do not discard currently playing sounds. The first memory warning arrives exactly
when the App enters the yellow area and consumes 500MB however it may consume 750MB and more
according to Xcode so terminating sounds on "memory warning" is incorrect behavior.
> How to reproduce: Add 1 or 2 large animated GIFs with 200+ frames to the UIWebView, this
will consume 500MB quickly while playing the GIFs, or simulate the memory warning using the
iOS Simulator while playing a sound.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message