Cordova Media is playing (I believe) but I'm not hearing any sound

I’m trying to get an audio file to play from the web using Cordova. I create the new media object, and on this view when I try to change my volume (on my device), the media volume changes. This leads me to be that the media is playing. However, there isn’t any audio coming out despite the volume I set on my phone.

Here’s my controller…

.controller('PlayerCtrl', function($scope, $stateParams, $cordovaMedia, $ionicLoading, MixtapeService) {
  var getPromise = MixtapeService.getTapesById(1400);

  var iOSPlayOptions = {
    playAudioWhenScreenIsLocked : true

    $scope.tape =[0];

    var media = new Media('', function() {;
}, function () {
    // error

  $ = function(src) {;

  var mediaStatusCallback = function(status) {
    if(status == 1) {
        ${template: 'Loading...'});
    } else {

Figured out the issue.

It was bad scoping with the media variable…


Glad to hear you got this issue resolved :smile: