Video player - get events from play/pause and currentTime?


#1

I’ve a Meteor template to handle videos which looks like this:
<template name="myvideo">
<video id="video1" class="video-js vjs-default-skin" controls preload="auto" >
<source src="" type='video/mp4'>
</video>
</template>

and I need to attach events for following cases:

  • play/pause button clicks
  • timestamp change and currentTime values.
    Is there some “click” or “change” events I can use to do this?

This information is then used to display a canvas with additional drawings (changing with time) and depending on the timestamps.
Thanks