cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dw1 (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-11369) Media Plugin: Ignore ANDROID_LOOP exif header
Date Fri, 03 Jun 2016 18:43:59 GMT

    [ 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


Mime
View raw message