Use the following code on your player implementation to have access to the video's metadata. The metadata will be available as a JSON.
onCreate: function(player) { // This is required when you want to load the message bus
// 'player' is the variable where the player object was saved.
player.mb.subscribe('metadataFetched', 'test', function(event) {// subscribe is used to listen an specific event. In this case 'metadataFetched'
console.log(JSON.stringify(arguments[1].base));
});
}