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 67BB2200B95 for ; Mon, 12 Sep 2016 17:51:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 668E5160AB2; Mon, 12 Sep 2016 15:51:27 +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 B57DD160AB8 for ; Mon, 12 Sep 2016 17:51:26 +0200 (CEST) Received: (qmail 55791 invoked by uid 500); 12 Sep 2016 15:51:20 -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 55647 invoked by uid 99); 12 Sep 2016 15:51:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 15:51:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A88D92C1B84 for ; Mon, 12 Sep 2016 15:51:20 +0000 (UTC) Date: Mon, 12 Sep 2016 15:51:20 +0000 (UTC) From: "Joe Bowser (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10878) Audio breaks on some Android devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Sep 2016 15:51:27 -0000 [ https://issues.apache.org/jira/browse/CB-10878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15484461#comment-15484461 ] Joe Bowser commented on CB-10878: --------------------------------- Neat, an excuse to get an NVidia Shield Tablet :) Seriously though, I agree with [~ghenry22] about releasing the file. > Audio breaks on some Android devices > ------------------------------------ > > Key: CB-10878 > URL: https://issues.apache.org/jira/browse/CB-10878 > Project: Apache Cordova > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Plugin Media > Affects Versions: 0.2.16 > Environment: Samsung GT-I8730 Galaxy Express, and Nvidia Shield Tablet > Reporter: Pixcoder > Labels: Android, triaged > > Hi, > My code is simple : every click triggers a sound play. > **** > url = "/android_asset/www/"+url; > AUDIO_OBJECTS[url] = new Media( url, > //success callback > function () { > console.log("playAudio():Audio Success"); > }, > //error callback > function (err) { > alert("playAudio():Audio Error code : " + err.code + " stringified : "+JSON.stringify(err)) > } > ); > AUDIO_OBJECTS[url].play(); > **** > This works well ! Until a certain number of click, maybe 20. My sounds are various mp3, from 1 second length to 10. > After about 20 clicks, the sound is not played anymore. > I have to exit the app and come back, sometimes it works again, sometimes not. > Also, sometimes it fires the error callback with error code "0" ... > On my Nexus 9 (same code), it works well, audio never breaks, but sometimes it struggles a bit before the sound is correctly played. -- 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