PageSourceSearch

https://www.arrowheadcu.org/admin/js/videojs.cuepoints.js

js arrowheadcu.org collected 2026-09-24 21:33:57 UTC 1,795 bytes, 5 lines download raw bytes

1/*! VideoJS Cuepoints plugin 2015-11-09 */
2/*! See http://github.com/cladera/videojs-cuepoints for details */
3/*! Author: Carlos Galan Cladera <[email protected]> */
4/*! Released under the MIT license */
5function Cuepoint(a,b){this.player=a;var c=b||{};this.namespace=c.namespace||"",this.start=c.start||0,this.end=c.end||-1,this.startFn=c.onStart||function(){},this.endFn=c.onEnd||function(){},this.params=c.params||{},this.fired=!1}function vjsCuepoints(a){var b=this;b.cuepoints=b.cuepoints||{},b.cuepoints.init=function(){b.cuepoints.instances=[]},b.cuepoints.destroy=function(){for(var a=0,c=b.cuepoints.instances.length;c>a;a++)b.cuepoints.instances[a].destroy(),b.cuepoints.instances[a]=null;b.cuepoints.instances=null},b.cuepoints._addCuepoint=function(a){var c=new Cuepoint(b,a);return c.activate(),b.cuepoints.instances.push(c),c},b.addCuepoint=function(a){return b.cuepoints._addCuepoint(a)},b.destroyCuepoints=function(){return b.cuepoints.destroy()},b.cuepoints.init(a)}Cuepoint.prototype._process=function(){if(this.player.currentTime()>=this.start&&(this.end<0||this.player.currentTime()<this.end)){if(this.fired)return;this.fired=!0,this._start()}else{if(!this.fired)return;this.fired=!1,this._end()}},Cuepoint.prototype.start=0,Cuepoint.prototype.end=-1,Cuepoint.prototype._start=function(){this.startFn.call(this,this.params)},Cuepoint.prototype._end=function(){this.endFn.call(this,this.params)},Cuepoint.prototype.activate=function(){var a=this;this.processHandler=function(){a._process()},this.player.on("timeupdate",this.processHandler)},Cuepoint.prototype.suspend=function(){this.fired=!1;this.player.off("timeupdate",this.processHandler)},Cuepoint.prototype.destroy=function(){this.player.off("timeupdate",this.processHandler)},videojs.plugin("cuepoints",vjsCuepoints);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.