Changeset 17408 for trunk/termtv/js
- Timestamp:
- 12/15/13 20:25:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/termtv/js/player.js
r17407 r17408 1 'use strict'; 2 1 3 /** 2 4 * @class TTVPlayer … … 86 88 This.debugStream = function(msg) 87 89 { 90 function pad(v) { return ('0'+v).slice(-2); } 91 88 92 if (!This.options.debug) 89 93 return; … … 91 95 if (This.stream && This.stream[This.nextFrameIdx]) 92 96 { 93 function pad(v) { return ('0'+v).slice(-2); }94 97 var dat = new Date((This.stream[This.nextFrameIdx].time - This.stream[0].time)*1000); 95 98 options.debug(pad(dat.getUTCHours())+":"+ … … 484 487 if (this.options.scan && (new Date()).getTime()/1000-now>1) 485 488 break; 486 487 489 } 488 490
Note:
See TracChangeset
for help on using the changeset viewer.