The video kinda runs on its own, and isn't synchronized to a timeline, which may run at a different rate (for a variety of reasons, timing in videos is just a hard problem).
HTML5 videos have an 'ended' event. You can use a little bit of JavaScript to handle this. The basic solution is here: