Include video in your analysis

This is a little javascript trick to add video in your analysis…but this only works in the webplayer.


The javascript will inject the HTML5 video tag into your TextArea and will only be visible in the webplayer. Depending on the browser versions you need to add different versions of the video (see the two sources in the example below).

  1. Create a TextArea and edit it as HTML.
  2. Add the following content:
    It should look like this
  3. Create a Javascript and add the following code:

Reminder: the video will only work in the webplayer.

One thought on “Include video in your analysis

  1. Hi,

    If I want to play video form youtube/from local disk, how to modify the below code ?

    var source1 = document.createElement(‘source’);
    source1.setAttribute(“src”, “”);
    source1.setAttribute(“type”, “video/mp4”);

    // create another video source element (ogg format)
    var source2 = document.createElement(‘source’);
    source2.setAttribute(“src”, “”);
    source2.setAttribute(“type”, “video/ogg”);


Leave a Reply

Your email address will not be published. Required fields are marked *

81 − 78 =