Thibault Durand created CB-6011:
-----------------------------------
Summary: Cordova Media doesn't work properly on Kindle Fire
(Android 2.3)
Key: CB-6011
URL: https://issues.apache.org/jira/browse/CB-6011
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.3.0
Environment: Kindle Fire (1st generation ), Based on Android OS 2.3.3
Reporter: Thibault Durand
Priority: Blocker
Hello,
I have an issue with my Kindle Fire (Android 2.3)
First, i've managed to create a sample app to reproduce the bug:
https://github.com/mosalingua/cordova-sampleapp-bug-media-sound-kindle
You can download the apk here :
https://github.com/mosalingua/cordova-sampleapp-bug-media-sound-kindle/raw/master/platforms/android/bin/HelloWorld-debug.apk
This app just has a button to play a sound, and we can visualise the Media
Callback when they are called.
And the problem is that on the Kindle Fire (Based on Android OS 2.3.3), the
callback mediaSuccess isn't called.
I've tested on these devices:
-> Kindle Fire (1st GEN), Android 2.3.3 => KO
-> Nexus 7, Android 4.4 => OK
-> Samsung Galaxy S1, Android 2.3.3 => OK
-> Samsung Galaxy S2, Android 4.0.4 => OK
As i've released my app on Amazon, i'm currently blocked on this platform to
keep releasing update, mi last update was bases on cordova 2.7, which worked
fine on Kindle.
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)