kWidget.addReadyCallback(function(playerId){ var kdp = $('#' + playerId )[0]; } kdp.kBind( 'bytesDownloadedChange', function( eventData ){ $('#bufferEvents').append( 'testBytesDownloadedChange: ' + eventData.newValue ) }); kdp.kBind( 'bufferProgress', function( eventData ){ $('#bufferEvents').append( 'bufferProgress: new time: ' + eventData.newTime ) }); })