Unified bind/unbind methods
Simple binding for kaltura events.
View the full list of events
kWidget.addReadyCallback( function( playerId ){
var kdp = document.getElementById( playerId );
var foo = "bar";
// Unlike addJsListener, you can directly issue local callbacks.
kdp.kBind( "doPlay.test", function(){ //notice the .test postfix namespaces the event)
console.log("play " + foo); // will log "play bar"
//Now we can unbind our .test postfix via kUnbind ( only will log play once )
kdp.kUnbind('.test')
});
});