Do your check against the media.currentTime
property in a handler for the timeupdate
event. See documentation:
The timeupdate event is fired when the time indicated by the currentTime attribute has been updated.
Just as an aside, this HTML5 video demo page is a really handy reference for playing around with the various properties and events available to you.