Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F32F9200BB6 for ; Fri, 4 Nov 2016 14:25:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F1CFD160AE9; Fri, 4 Nov 2016 13:25:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 42414160AE8 for ; Fri, 4 Nov 2016 14:25:59 +0100 (CET) Received: (qmail 12090 invoked by uid 500); 4 Nov 2016 13:25:58 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 12078 invoked by uid 99); 4 Nov 2016 13:25:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 13:25:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 514802C0276 for ; Fri, 4 Nov 2016 13:25:58 +0000 (UTC) Date: Fri, 4 Nov 2016 13:25:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11513) iOS memory warning stops sound, but does not send status to JS-client MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 13:26:00 -0000 [ https://issues.apache.org/jira/browse/CB-11513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636315#comment-15636315 ] ASF GitHub Bot commented on CB-11513: ------------------------------------- Github user romedius commented on the issue: https://github.com/apache/cordova-plugin-media/pull/120 original author of this bugfix: @katzlbt > iOS memory warning stops sound, but does not send status to JS-client > --------------------------------------------------------------------- > > Key: CB-11513 > URL: https://issues.apache.org/jira/browse/CB-11513 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media > Affects Versions: 3.6.3, 4.1.3, 6.1.0 > 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: 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. > https://github.com/apache/cordova-plugin-media/blob/master/src/ios/CDVSound.m#L814 > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org