Include video in your analysis

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

html5_video

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
    video_html
  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”, “http://www.w3schools.com/html/mov_bbb.mp4”);
    source1.setAttribute(“type”, “video/mp4”);

    // create another video source element (ogg format)
    var source2 = document.createElement(‘source’);
    source2.setAttribute(“src”, “http://www.w3schools.com/html/mov_bbb.ogg”);
    source2.setAttribute(“type”, “video/ogg”);

    Thanks,
    Basha

Leave a Reply

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

51 − = 48