Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6011

Cordova Media doesn't work properly on Kindle Fire (Android 2.3)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.3.0
    • None
    • cordova-android
    • None
    • Kindle Fire (1st generation ), Based on Android OS 2.3.3

    Description

      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, my last update was based on cordova 2.7, which worked fine on Kindle.

      I've dug into the Media Plugin, and i've find out that in 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdurand Thibault Durand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: