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

cordova-plugin-media 2.1.0 dos not fire mediaSuccess

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-media
    • cordova-plugin-file 4.1.0 "File"
      cordova-plugin-media 2.1.0 "Media"

      Installed platforms: android 5.1.0

    Description

      I am runnig a simple test from the code on github, the sound file plays okbut the success function does not get fired.
      Code below:
      var my_media = new Media("file:///android_asset/www/hello2.wav",
      // success callback
      function ()

      { console.log("playAudio():Audio Success"); }

      ,
      // error callback
      function (err)

      { console.log("playAudio():Audio Error: " + err); }

      ,
      function ()

      { console.log("playAudio():Audio Status"); }

      );
      // Play audio
      my_media.play();

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jnccneto jose nuno neto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: