Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19473106BB for ; Fri, 31 Jan 2014 13:50:14 +0000 (UTC) Received: (qmail 90388 invoked by uid 500); 31 Jan 2014 13:50:13 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 90013 invoked by uid 500); 31 Jan 2014 13:50:12 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 89900 invoked by uid 99); 31 Jan 2014 13:50:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2014 13:50:11 +0000 Date: Fri, 31 Jan 2014 13:50:11 +0000 (UTC) From: "Thibault Durand (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-5955) Media.onStatus method do not catch some message that are correctly send by the AudioPlayer.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-5955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thibault Durand updated CB-5955: -------------------------------- Description: Hi, I have a really weird issue with my Kindle Fire (Android 2.3) , i'll try to explain it the best i can (i don't fully understand the problem and it may be not a problem on your side). First, i'm not able to do a sample app to reproduce this bug. (it happens sometimes on my device, but when i do a test app, i never get it) I have a piece of code that need to get the MediaSuccess (or Error) callback after playing an audio file, and sometimes, it's juste isn't called. I've dug into the Media Plugin, and i've find out that int the AudioPlayer.java , the setState method is working just fine, and send this message to the javascript part with the correct status. ( 4 == MEDIA_STOPPED ) cordova.require('org.apache.cordova.media.Media').onStatus('c5f1ec7b-9cdf-0a49-3f62-0def8bd2d9b2', 1, 4); But, when i put a console.log in the Media.onStatus callback in the Media.js file, i don't get anything, it seems that the message isn't caught. So my question is : Do you see how that could be possible ? Thanks, i can give you more information if needed. Best regards, Thibault was: Hi, I have a really weird issue with my Kindle Fire (Android 2.3) , i'll try to explain it the best i can (i don't fully understand the problem and it may be not a problem on your side). First, i'm not able to do a sample app to reproduce this bug. (it happens sometimes on my device, but when i do a test app, i never get it) I have a piece of code that need to get the MediaSuccess (or Error) callback after playing an audio file, and sometimes, it's juste isn't called. I've dug into the Media Plugin, and i've find out that int the AudioPlayer.java , the setState method is working just fine, and send this message to the javascript part with the correct status. ( 4 == MEDIA_STOPPED ) cordova.require('org.apache.cordova.media.Media').onStatus('c5f1ec7b-9cdf-0a49-3f62-0def8bd2d9b2', 1, 4); But, when i put a console.log in the Media.onStatus callback in the Media.js file, i don't get anything, it seems that the message isn't catched. So my question is : Do you see how that could be possible ? Thanks, i can give you more information if needed. Best regards, Thibault > Media.onStatus method do not catch some message that are correctly send by the AudioPlayer.java > ----------------------------------------------------------------------------------------------- > > Key: CB-5955 > URL: https://issues.apache.org/jira/browse/CB-5955 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS > Affects Versions: 3.0.0, 3.1.0, 3.2.0, 3.3.0 > Environment: Kindle Fire , Android 2.3 > Reporter: Thibault Durand > > Hi, > I have a really weird issue with my Kindle Fire (Android 2.3) , i'll try to explain it the best i can (i don't fully understand the problem and it may be not a problem on your side). First, i'm not able to do a sample app to reproduce this bug. (it happens sometimes on my device, but when i do a test app, i never get it) > I have a piece of code that need to get the MediaSuccess (or Error) callback after playing an audio file, and sometimes, it's juste isn't called. > I've dug into the Media Plugin, and i've find out that int the AudioPlayer.java , the setState method is working just fine, and send this message to the javascript part with the correct status. ( 4 == MEDIA_STOPPED ) > cordova.require('org.apache.cordova.media.Media').onStatus('c5f1ec7b-9cdf-0a49-3f62-0def8bd2d9b2', 1, 4); > But, when i put a console.log in the Media.onStatus callback in the Media.js file, i don't get anything, it seems that the message isn't caught. > So my question is : Do you see how that could be possible ? > Thanks, i can give you more information if needed. > Best regards, > Thibault -- This message was sent by Atlassian JIRA (v6.1.5#6160)