flowplayer-files
Version:
Flowplayer js and css files for v2.5.9 after the reboot of flowplayer
2 lines (1 loc) • 1.76 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):((t=t||self).flowplayer=t.flowplayer||{},t.flowplayer.debug=e())}(this,(function(){"use strict";var t="debug:error",e="flowplayer:debug";"function"==typeof console.time&&console.time(e);var n,o,r=(n=[flowplayer.events,flowplayer.AdEvents],o=[],n.forEach((function(t){if("object"==typeof t)for(var e in t)o.push(t[e])})),o).sort((function(t,e){return e.length-t.length}));function i(e,n){if(!(this instanceof i))return new i(e,n);e=e||{};var o=this;o.stdout=e.stdout||i.stdout,o.stderr=e.stderr||i.stderr,o.blacklist=e.blacklist||/mouse|time|resize|config|state|progress/,o.last=Date.now(),o.width=r[0].length+20,o.tick=function(){var t=Date.now(),e=t-o.last;return o.last=t,e},n.on(t,(function(t){o.stderr(t.data)})),r.forEach((function(t){t.match(o.blacklist)||n.on(t,(function(t){o.stdout(o,t,n.toJSON())}))}))}function f(){if("undefined"!=typeof flowplayer){var t=flowplayer.extensions.slice(0);flowplayer.extensions.length=0,t.forEach((function(t){flowplayer.extensions.push(i.wrap_plugin(t))})),flowplayer.extensions.unshift((function(t,e,n){!1!==t.debug&&i(t.debug,n)}))}}return i.left_pad=function(t,e){for(;t.length<e;)t=" "+t;return t},i.wrap_plugin=function(e){var n=function(n,o,r,i){try{e(n,o,r,i)}catch(e){throw r.emit(t,e),e}};return e.wants&&(n.wants=e.wants),e.onapi&&(n.onapi=e.onapi),n},i.since=function(t,e){var n=t.tick(),o="[flowplayer."+e+"]";return[i.left_pad(o,t.width)," +",n,"ms"," "].join("")},i.stdout=function(t,n){if("function"==typeof console.timeLog)return console.timeLog(e,n.type,n.data||"",n.target.toJSON());var o=i.since(t,n.type);console.log(o,n.data||"")},i.stderr=function(t,e){},f(),f}));