var events = [
'emptied',
'loadedmetadata',
'loadeddata',
'canplay',
'canplaythrough',
'playing',
'ended',
'waiting',
'ended',
'durationchange',
'timeupdate',
'play',
'pause',
'ratechange',
'volumechange'
];
_.each(events, function(type) {
player.addEventListener(type, onEvent, false);
});
function onEvent(e) {
console.log(e.type);
}