$cordovaMedia has no method play

Hi,

I am using the $cordovaMedia from ngCordova for playing audio files locally. But, when I run the app and press the play button it gives and error saying TypeError: Object # Object has no method ‘play’

Here is my code:

  1. HTML5

    PLAY

  2. JS

    $scope.playIt = function (src) {
    console.log(‘Play called’);

     var media = $cordovaMedia.newMedia(src).then(
         //Success
         function () {},    
         //Error
         function () {}
     );    
     media.play();
    

    }
    var statusCall = function (status) {
    console.log(“Loading file”);
    }

  3. The error:
    image

У меня тоже (((( херняяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяя