You can do something like:
var tmr=setInterval(checkTime,100);myVideoPlayer.playheadUpdateInterval=100;function checkTime(){ if (int(myVideoPlayer.playheadTime)==5) { doMyFunc(); clearInterval(checkTime); }}