2 Replies Latest reply on Aug 12, 2018 2:35 AM by crizon

    Playing Audio on Android not working and NO message

    martinr82627281 Level 1

      I tried the following code:

       

      var mediaPlayneu = new Media("/android_asset/www/sound/beepshort.mp3",

       

       

      // success callback

      function() {

        alert("play3 success");

      },

       

      // error callback

      function(err) {

             alert(JSON.stringify(err));

      });

       

      mediaPlayneu.play();

       

      I get no message and the audio is not playing. What could be the issue?

      I tested on Android 5.0, Phonegap cli-6.5.0 and cordova-media-plugin 5.0.2.