var player; function icOnAppLoaded(){ player = icCreatePlayer('_icplayer'); player.load('content/default.ic.xml'); player.onStatusChanged(function(type, source, value){ console.log("type:" + type + ", source: " + source, ", value:" + value); }); }