Access to controller var isPlaying from function musesCallback

Hello I create radio app.

How to set var from out function?

App.ApplicationController.set(‘isPlaying’, true);

This is only jquery http://rzk.com.ua/frodio/#station20, and i need create ember App

App.ApplicationController = Ember.Controller.extend({ isPlaying: false, actions: { playRadio: function() { MRP.play(); //this.set(‘isPlaying’, true); }, stopRadio: function() { MRP.stop(); //this.set(‘isPlaying’, false); } } });

function musesCallback (event,param){ console.log(event+': '+param); if (event == ‘play’) { App.ApplicationController.isPlaying = true; }

if (event == ‘stop’) { App.ApplicationController.isPlaying = false; }

}