Ionic2 new Events() or Events.setupEvents() (and examples) ;

I’m not sure what’s the problem with the other post. I’ve made several tests since and it seems like my issue is that I’m calling Events inside a Media.create()'s onStatusUpdate callback function, like so:

On https://ionicframework.com/docs/native/media/#create we have:

create(src, onStatusUpdate) where onStatusUpdate “A callback function to be invoked when the status of the file changes”.

So I made:

onStatusUpdate(status){
    console.log(status);
    console.log("event thrown");
    this.eventCtrl.publish('audio:stopped',status);
};

Which is called, and the console logs work, but when it reaches the last line there, it no event is published and I get a type error. I’ve made a thread about it here.