diff --git a/dist/clappr-nerd-stats.js b/dist/clappr-nerd-stats.js index 7734787..ad05199 100644 --- a/dist/clappr-nerd-stats.js +++ b/dist/clappr-nerd-stats.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Clappr"),require("ClapprStats")):"function"==typeof define&&define.amd?define(["Clappr","ClapprStats"],e):"object"==typeof exports?exports.ClapprNerdStats=e(require("Clappr"),require("ClapprStats")):t.ClapprNerdStats=e(t.Clappr,t.ClapprStats)}(this,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";(function(e){function n(t,e){return null==t?void 0:t[e]}function i(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function r(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1}function v(t,e){var n=this.__data__,i=x(n,t);return i<0?n.push([t,e]):n[i][1]=e,this}function y(t){var e=-1,n=t?t.length:0;for(this.clear();++e95&&t<112||w.hasOwnProperty(t)&&(_[w[t]]=t)}return _}function v(t,e,n){return n||(n=h()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function b(t,e){var n,i,r,o=[];for(n=y(t),r=0;r1)return void h(t,s,e,i);a=b(t,i),y._callbacks[a.key]=y._callbacks[a.key]||[],n(a.key,a.modifiers,{type:a.action},r,t,o),y._callbacks[a.key][r?"unshift":"push"]({callback:e,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:t})}var y=this;if(t=t||o,!(y instanceof g))return new g(t);y.target=t,y._callbacks={},y._directMap={};var m,_={},w=!1,x=!1,k=!1;y._handleKey=function(t,r,o){var a,s=n(t,r,o),c={},u=0,l=!1;for(a=0;a":".","?":"/","|":"\\"},S={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},j=1;j<20;++j)w[111+j]="f"+j;for(j=0;j<=9;++j)w[j+96]=j.toString();g.prototype.bind=function(t,e,n){var i=this;return t=t instanceof Array?t:[t],i._bindMultiple.call(i,t,e,n),i},g.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},g.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},g.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},g.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!m(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},g.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},g.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(w[e]=t[e]);_=null},g.init=function(){var t=g(o);for(var e in t)"_"!==e.charAt(0)&&(g[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},g.init(),r.Mousetrap=g,void 0!==t&&t.exports&&(t.exports=g),void 0!==(i=function(){return g}.call(e,n,e,t))&&(t.exports=i)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(t,e,n){e=t.exports=n(6)(void 0),e.push([t.i,".clappr-nerd-stats.container{position:absolute;display:inline-block;top:2em;left:2em;padding:5px;margin:0;line-height:20px;font-size:11px;box-shadow:0 0 0 1px hsla(0,0%,100%,.15);background:rgba(0,0,0,.8);color:#fff;z-index:1000;overflow:auto;max-height:300px;min-width:240px;max-width:75%}.clappr-nerd-stats.container ul{display:inline-block;float:left;padding:5px;min-width:240px;width:33.3333%}.clappr-nerd-stats.container ul,li{list-style-type:none}.clappr-nerd-stats.container li:nth-child(2n){background:hsla(0,0%,100%,.15)}.clappr-nerd-stats.container li{padding:0 5px;text-align:left}.clappr-nerd-stats.container li.title{text-align:center;font-weight:700}.clappr-nerd-stats.container li div{padding-left:5px;margin:0;float:right}.clappr-nerd-stats.icon-show-stats a{z-index:1000;position:absolute;float:right;color:#fff;display:none}.clappr-nerd-stats.icon-show-stats.top-right a{display:block;top:5px;right:10px}.clappr-nerd-stats.icon-show-stats.top-left a{display:block;top:5px;left:10px}.clappr-nerd-stats.icon-show-stats.bottom-right a{display:block;right:10px;bottom:5px}.clappr-nerd-stats.icon-show-stats.bottom-left a{display:block;bottom:5px;left:10px}",""])},function(t,e){t.exports='<%= counters = metrics.counters %> <%= timers = metrics.timers %> <%= extra = metrics.extra %>
  • Counters
  • Plays:
    <%= counters.play %>
  • Pauses:
    <%= counters.pause %>
  • Errors:
    <%= counters.error %>
  • Bufferings:
    <%= counters.buffering %>
  • Decoded frames:
    <%= counters.decodedFrames %>
  • Dropped frames:
    <%= counters.droppedFrames %>
  • Frames per second:
    <%= counters.fps %>
  • Bitrate changes:
    <%= counters.changeLevel %>
  • Seeks:
    <%= counters.seek %>
  • Fullscreen:
    <%= counters.fullscreen %>
  • DVR seeks:
    <%= counters.dvrUsage %>
  • Timers
  • Startup time:
    <%= timers.startup.toFixed(2) %> ms
  • Watching time:
    <%= (timers.watch / 1000).toFixed(2) %> sec
  • Pause time:
    <%= timers.pause.toFixed(2) %> ms
  • Buffering time:
    <%= timers.buffering.toFixed(2) %> ms
  • Session time:
    <%= (timers.session / 1000).toFixed(2) %> sec
  • Latency:
    <%= timers.latency.toFixed(2) %> ms
  • Extra
  • Playback:
    <%= extra.playbackName %>
  • Playback type:
    <%= extra.playbackType %>
  • Buffer size:
    <%= (extra.buffersize / 1000).toFixed(2) %> sec
  • Video duration:
    <%= (extra.duration / 1000).toFixed(2) %> sec
  • Current time:
    <%= (extra.currentTime / 1000).toFixed(2) %> sec
  • Bitrate weighted mean:
    <%= extra.bitrateWeightedMean.toFixed(2) %> kbps
  • Bitrate most used:
    <%= extra.bitrateMostUsed.bitrate %> kbps
  • % Watched:
    <%= extra.watchedPercentage.toFixed(2) %> %
  • % Buffering:
    <%= extra.bufferingPercentage.toFixed(2) %> %
  • Bandwidth:
    <%= extra.bandwidth %> kbps
'},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=i(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r-1}function v(t,e){var n=this.__data__,r=x(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function y(t){var e=-1,n=t?t.length:0;for(this.clear();++e95&&t<112||w.hasOwnProperty(t)&&(_[w[t]]=t)}return _}function v(t,e,n){return n||(n=h()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function b(t,e){var n,r,i,o=[];for(n=y(t),i=0;i1)return void h(t,s,e,r);a=b(t,r),y._callbacks[a.key]=y._callbacks[a.key]||[],n(a.key,a.modifiers,{type:a.action},i,t,o),y._callbacks[a.key][i?"unshift":"push"]({callback:e,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:t})}var y=this;if(t=t||o,!(y instanceof g))return new g(t);y.target=t,y._callbacks={},y._directMap={};var m,_={},w=!1,x=!1,k=!1;y._handleKey=function(t,i,o){var a,s=n(t,i,o),c={},u=0,l=!1;for(a=0;a":".","?":"/","|":"\\"},P={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},S=1;S<20;++S)w[111+S]="f"+S;for(S=0;S<=9;++S)w[S+96]=S.toString();g.prototype.bind=function(t,e,n){var r=this;return t=t instanceof Array?t:[t],r._bindMultiple.call(r,t,e,n),r},g.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},g.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},g.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},g.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!m(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},g.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},g.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(w[e]=t[e]);_=null},g.init=function(){var t=g(o);for(var e in t)"_"!==e.charAt(0)&&(g[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},g.init(),i.Mousetrap=g,void 0!==t&&t.exports&&(t.exports=g),void 0!==(r=function(){return g}.call(e,n,e,t))&&(t.exports=r)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n>1,n=r[e].factor,n>t?o=e-1:i=e;return r[i]},l.prototype.parse=function(t,e){var n=t.match(this._regexp);if(!n)return null;var r,i=n[2];if(v(this._prefixes,i))r=this._prefixes[i];else{if(e||(i=i.toLowerCase(),!v(this._lcPrefixes,i)))return null;i=this._lcPrefixes[i],r=this._prefixes[i]}return{factor:r,prefix:i,unit:n[3],value:+n[1]}};var g={binary:l.create(",ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:l.create("y,z,a,f,p,n,ยต,m,,k,M,G,T,P,E,Z,Y".split(","),1e3,-8)},_={scale:"SI",strict:!1,unit:"",decimals:2,separator:" "};return p.parse=f,f.raw=d,p.raw=h,p.Scale=l,p})},function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n