Media Undefined

I am try to use cordova media plugin but the Ionic.bundle.js says media Undefined error.
pls give any solution, how to solve this.

This is my code:

var src = “/src/audio.mp3”;
var media = $cordovaMedia.newMedia(src);

var iOSPlayOptions = {
numberOfLoops: 2,
playAudioWhenScreenIsLocked : false
}

media.play(options); // iOS only!
media.play(); // Android

media.pause();

media.stop();

media.release();

media.seekTo(5000); // milliseconds value

media.setVolume(0.5);

media.startRecord();

media.stopRecord();