[ 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)