~canonical-website-editors/canonical-video-player/trunk

« back to all changes in this revision

Viewing changes to js/player.js

  • Committer: deadlight at bgr0
  • Date: 2014-02-26 16:01:33 UTC
  • Revision ID: deadlight@bgr0.com-20140226160133-9l08mnwanz2n5m0p
cleaned up commenting and removed console.log

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * JavaScript file to provide an interface with video.js
5
5
 * 
6
 
 * @project             
 
6
 * @project             canonical-video-player
7
7
 * @author              Web Team at Canonical Ltd
8
8
 * @copyright   2013 Canonical Ltd
9
9
 *
118
118
    videoWrapperNode.parentNode.insertBefore(node, videoWrapperNode.nextSibling);
119
119
  },
120
120
 
 
121
  //Sets the ticker update interval
121
122
  "setTicker": function() {
122
123
    this.interval = window.setInterval(core.videoPlayer.updateCaptions, 500);
123
124
  },
165
166
  "generatePageMarkup": function(ID){
166
167
    //generates and outputs the video-navigation links for any steps in the config
167
168
    var currentStep = 1;
168
 
    for (captionKey in core.videoPlayer.captions){ console.log('caption');
 
169
    for (captionKey in core.videoPlayer.captions){
169
170
      if (core.videoPlayer.captions[captionKey].type == 'step'){
170
171
        description = '';
171
172
        if (core.videoPlayer.captions[captionKey].description !== undefined){
197
198
    this.templates.stepLinkDetails = document.getElementById("templateStepLinkDetails").innerHTML;
198
199
  },
199
200
 
 
201
  //skip to specified timestamp
200
202
  "skipTo": function(timeStamp){
201
 
    //skip to specified timestamp
202
203
    core.videoPlayer.videojs.currentTime(timeStamp/10);
203
204
  },
204
205