Is there any way to add callback function for player.sendEvent() in jwplayer.
function timeseek(obj){
seek_position = obj.position ;
player.sendEvent('PLAY',false);//pause video
updateT(logid,seek_position,1);//update db with current paused value
player.sendEvent('SEEK ',seek_position);//seek to position
player.sendEvent('PLAY',true);//Play video
}
i want to do actions in above function one after the other.