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 17C95200B44 for ; Thu, 30 Jun 2016 01:04:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 16664160A6E; Wed, 29 Jun 2016 23:04:31 +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 82B2A160A57 for ; Thu, 30 Jun 2016 01:04:30 +0200 (CEST) Received: (qmail 73419 invoked by uid 500); 29 Jun 2016 23:04:29 -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 73406 invoked by uid 99); 29 Jun 2016 23:04:29 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2016 23:04:29 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 870FA2C029F for ; Wed, 29 Jun 2016 23:04:29 +0000 (UTC) Date: Wed, 29 Jun 2016 23:04:29 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Deleted] (CB-11511) 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: Wed, 29 Jun 2016 23:04:31 -0000 [ https://issues.apache.org/jira/browse/CB-11511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah deleted CB-11511: ---------------------------------- > iOS memory warning stops sound, but does not send status to JS-client > --------------------------------------------------------------------- > > Key: CB-11511 > URL: https://issues.apache.org/jira/browse/CB-11511 > 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