how can you add a link to the end of the video, e.g. linking to an external ressource or whatever?

So my question is more how to be able to react on certain events and/or where to put the code? Can somebody give me a stgarting point?



drupov’s picture

Status:Active» Closed (works as designed)

OK, looking around it was actually quite straightforward:

In a javascript on your site file enter something like this:

  var myPlayer = this;
  myPlayer.addEvent("pause", function() {
    console.log("It is paused now!");

(See also http://videojs.com/docs/api/ for further details).

Jorrit’s picture

Yep, that is the link I would have given you if I were less busy. I am glad you found it!