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 AADDD200B14 for ; Fri, 3 Jun 2016 20:44:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A993D160A50; Fri, 3 Jun 2016 18:44:02 +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 027DA160A49 for ; Fri, 3 Jun 2016 20:44:01 +0200 (CEST) Received: (qmail 19483 invoked by uid 500); 3 Jun 2016 18:43:59 -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 18988 invoked by uid 99); 3 Jun 2016 18:43:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2016 18:43:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 553532C14F8 for ; Fri, 3 Jun 2016 18:43:59 +0000 (UTC) Date: Fri, 3 Jun 2016 18:43:59 +0000 (UTC) From: "dw1 (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-11369) Media Plugin: Ignore ANDROID_LOOP exif header MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Jun 2016 18:44:02 -0000 [ https://issues.apache.org/jira/browse/CB-11369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15314584#comment-15314584 ] dw1 edited comment on CB-11369 at 6/3/16 6:43 PM: -------------------------------------------------- The system looping these sounds seems to be built into android and not likely to change. http://stackoverflow.com/questions/12834727/android-loop-true-how-to-avoid-mediaplayer-looping-audios-with-this-metadat was (Author: dhjw): http://stackoverflow.com/questions/12834727/android-loop-true-how-to-avoid-mediaplayer-looping-audios-with-this-metadat > Media Plugin: Ignore ANDROID_LOOP exif header > --------------------------------------------- > > Key: CB-11369 > URL: https://issues.apache.org/jira/browse/CB-11369 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin Media > Reporter: dw1 > > Any sound file that has an ANDROID_LOOP=true exif header, such as many of the /system/media/audio files included with Lollipop, will always loop forever even if only expected to play once via the media plugin. This can lead to having to shut down an app to stop the sound. The plugin should ignore the header and play the sound once unless using the plugin loop feature, as expected. > My big ugly workaround is to monitor the duration of the file and destroy the media at about the right time: http://pastebin.com/raw/Q9kCriab -- 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