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:
-
HTML5
PLAY
-
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”);
} -
The error: