Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mediaelement

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mediaelement - npm Package Compare versions

Comparing version 4.2.9 to 4.2.10

2

build/renderers/dailymotion.js

@@ -11,3 +11,3 @@ /*!

*
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
*/(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
'use strict';

@@ -14,0 +14,0 @@

@@ -12,2 +12,2 @@ /*!

*/
!function e(t,a,n){function i(s,o){if(!a[s]){if(!t[s]){var d="function"==typeof require&&require;if(!o&&d)return d(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=a[s]={exports:{}};t[s][0].call(l.exports,function(e){var a=t[s][1][e];return i(a||e)},l,l.exports,e,t,a,n)}return a[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,a){"use strict";var n={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(e){n.isLoaded?n.createIframe(e):(n.loadIframeApi(),n.iframeQueue.push(e))},loadIframeApi:function(){n.isSDKStarted||(mejs.Utils.loadScript("https://api.dmcdn.net/all.js"),n.isSDKStarted=!0)},apiReady:function(){for(n.isLoaded=!0,n.isSDKLoaded=!0;n.iframeQueue.length>0;){var e=n.iframeQueue.pop();DM.init({apiKey:e.apiKey,status:e.status,cookie:e.cookie}),n.createIframe(e)}},createIframe:function(e){var t=DM.player(e.container,{height:e.height||"100%",width:e.width||"100%",video:e.videoId,params:Object.assign({api:!0},e.params),origin:location.host});t.addEventListener("apiready",function(){window["__ready__"+e.id](t,{paused:!0,ended:!1})})},getDailyMotionId:function(e){var t=e.split("/");return t[t.length-1].split("_")[0]}},i={name:"dailymotion_iframe",options:{prefix:"dailymotion_iframe",dailymotion:{width:"100%",height:"100%",params:{autoplay:!1,chromeless:1,info:0,logo:0,related:0},apiKey:null,status:!0,cookie:!0}},canPlayType:function(e){return~["video/dailymotion","video/x-dailymotion"].indexOf(e.toLowerCase())},create:function(e,t,a){var i={},r=[],s=void 0,o=null,d=null,u=e.originalNode.muted;i.options=t,i.id=e.id+"_"+t.prefix,i.mediaElement=e;for(var l=mejs.html5media.properties,c=0,m=l.length;c<m;c++)!function(t){var a=""+t.substring(0,1).toUpperCase()+t.substring(1);i["get"+a]=function(){if(null!==o){switch(t){case"currentTime":return o.currentTime;case"duration":return isNaN(o.duration)?0:o.duration;case"volume":return o.volume;case"paused":return o.paused;case"ended":return o.ended;case"muted":return u=o.muted;case"buffered":var a=o.bufferedTime,n=o.duration;return{start:function(){return 0},end:function(){return a/n},length:1};case"src":return e.originalNode.getAttribute("src");case"readyState":return 4}return null}return null},i["set"+a]=function(a){if(null!==o)switch(t){case"src":var s="string"==typeof a?a:a[0].src;o.load(n.getDailyMotionId(s));break;case"currentTime":o.seek(a);break;case"muted":!0===a&&o.setVolume(0),o.setMuted(a),u=a,setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"volume":o.setVolume(a),0!==a||o.muted?a>0&&o.muted&&(o.setMuted(!1),u=!1):(o.setMuted(!0),u=!0),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"readyState":var d=mejs.Utils.createEvent("canplay",i);e.dispatchEvent(d)}else r.push({type:"set",propName:t,value:a})}}(l[c]);for(var p=mejs.html5media.methods,v=0,f=p.length;v<f;v++)!function(e){i[e]=function(){if(null!==o)switch(e){case"play":return o.play();case"pause":return o.pause();case"load":return null}else r.push({type:"call",methodName:e})}}(p[v]);window["__ready__"+i.id]=function(t){if(e.dmPlayer=o=t,r.length)for(var a=0,n=r.length;a<n;a++){var u=r[a];if("set"===u.type){var l=u.propName,c=""+l.substring(0,1).toUpperCase()+l.substring(1);i["set"+c](u.value)}else"call"===u.type&&i[u.methodName]()}d=document.getElementById(i.id);for(var m=0,p=(s=["mouseover","mouseout"]).length;m<p;m++)d.addEventListener(s[m],function(t){var a=mejs.Utils.createEvent(t.type,i);e.dispatchEvent(a)},!1);e.originalNode.muted?(o.setVolume(0),o.setMuted(!0)):(o.setVolume(o.volume),o.setMuted(!1)),s=mejs.html5media.events;for(var v=0,f=(s=s.concat(["click","mouseover","mouseout"])).length;v<f;v++)!function(t){"ended"!==t&&o.addEventListener(t,function(t){var a=mejs.Utils.createEvent(t.type,i);e.dispatchEvent(a)})}(s[v]);o.addEventListener("ad_start",function(){var t=mejs.Utils.createEvent("play",i);e.dispatchEvent(t),t=mejs.Utils.createEvent("progress",i),e.dispatchEvent(t),t=mejs.Utils.createEvent("timeupdate",i),e.dispatchEvent(t)}),o.addEventListener("ad_timeupdate",function(){var t=mejs.Utils.createEvent("timeupdate",i);e.dispatchEvent(t)}),o.addEventListener("ad_pause",function(){var t=mejs.Utils.createEvent("pause",i);e.dispatchEvent(t)}),o.addEventListener("start",function(){if(o.muted){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)}}),o.addEventListener("video_start",function(){var t=mejs.Utils.createEvent("play",i);e.dispatchEvent(t);var a=mejs.Utils.createEvent("playing",i);e.dispatchEvent(a)}),o.addEventListener("ad_timeupdate",function(){var t=mejs.Utils.createEvent("timeupdate",i);e.dispatchEvent(t)}),o.addEventListener("video_end",function(){var t=mejs.Utils.createEvent("ended",i);e.dispatchEvent(t),e.originalNode.getAttribute("loop")&&o.play()});for(var h=["rendererready","loadedmetadata","loadeddata","canplay"],y=0,g=h.length;y<g;y++){var E=mejs.Utils.createEvent(h[y],i);e.dispatchEvent(E)}};var h=document.createElement("div");h.id=i.id,e.appendChild(h),e.originalNode&&(h.style.width=e.originalNode.style.width,h.style.height=e.originalNode.style.height),e.originalNode.style.display="none";var y=n.getDailyMotionId(a[0].src),g={id:i.id,container:h,videoId:y};return g.params=Object.assign({},i.options.dailymotion),g.params.controls=!!e.originalNode.controls,e.originalNode.autoplay&&(g.params.autoplay=!0),e.originalNode.muted&&(g.params.mute=!0),g.params.api="1",n.enqueueIframe(g),i.hide=function(){i.pause(),d&&(d.style.display="none")},i.show=function(){d&&(d.style.display="")},i.setSize=function(e,t){d&&(d.width=e,d.height=t)},i.destroy=function(){o.destroy()},i}};mejs.Utils.typeChecks.push(function(e){return/\/\/((www\.)?dailymotion\.com|dai\.ly)/i.test(e)?"video/x-dailymotion":null}),window.dmAsyncInit=function(){n.apiReady()},mejs.Renderers.add(i)},{}]},{},[1]);
!function r(s,o,d){function u(a,e){if(!o[a]){if(!s[a]){var t="function"==typeof require&&require;if(!e&&t)return t(a,!0);if(l)return l(a,!0);var n=new Error("Cannot find module '"+a+"'");throw n.code="MODULE_NOT_FOUND",n}var i=o[a]={exports:{}};s[a][0].call(i.exports,function(e){var t=s[a][1][e];return u(t||e)},i,i.exports,r,s,o,d)}return o[a].exports}for(var l="function"==typeof require&&require,e=0;e<d.length;e++)u(d[e]);return u}({1:[function(e,t,a){"use strict";var p={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(e){p.isLoaded?p.createIframe(e):(p.loadIframeApi(),p.iframeQueue.push(e))},loadIframeApi:function(){p.isSDKStarted||(mejs.Utils.loadScript("https://api.dmcdn.net/all.js"),p.isSDKStarted=!0)},apiReady:function(){for(p.isLoaded=!0,p.isSDKLoaded=!0;0<p.iframeQueue.length;){var e=p.iframeQueue.pop();DM.init({apiKey:e.apiKey,status:e.status,cookie:e.cookie}),p.createIframe(e)}},createIframe:function(e){var t=DM.player(e.container,{height:e.height||"100%",width:e.width||"100%",video:e.videoId,params:Object.assign({api:!0},e.params),origin:location.host});t.addEventListener("apiready",function(){window["__ready__"+e.id](t,{paused:!0,ended:!1})})},getDailyMotionId:function(e){var t=e.split("/");return t[t.length-1].split("_")[0]}},n={name:"dailymotion_iframe",options:{prefix:"dailymotion_iframe",dailymotion:{width:"100%",height:"100%",params:{autoplay:!1,chromeless:1,info:0,logo:0,related:0},apiKey:null,status:!0,cookie:!0}},canPlayType:function(e){return~["video/dailymotion","video/x-dailymotion"].indexOf(e.toLowerCase())},create:function(h,e,t){var y={},g=[],E=void 0,j=null,w=null;h.originalNode.muted;y.options=e,y.id=h.id+"_"+e.prefix,y.mediaElement=h;for(var a=mejs.html5media.properties,n=function(n){var e=""+n.substring(0,1).toUpperCase()+n.substring(1);y["get"+e]=function(){if(null!==j){switch(n){case"currentTime":return j.currentTime;case"duration":return isNaN(j.duration)?0:j.duration;case"volume":return j.volume;case"paused":return j.paused;case"ended":return j.ended;case"muted":return j.muted;case"buffered":var e=j.bufferedTime,t=j.duration;return{start:function(){return 0},end:function(){return e/t},length:1};case"src":return h.originalNode.getAttribute("src");case"readyState":return 4}return null}return null},y["set"+e]=function(e){if(null!==j)switch(n){case"src":var t="string"==typeof e?e:e[0].src;j.load(p.getDailyMotionId(t));break;case"currentTime":j.seek(e);break;case"muted":!0===e&&j.setVolume(0),j.setMuted(e),e,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",y);h.dispatchEvent(e)},50);break;case"volume":j.setVolume(e),0!==e||j.muted?0<e&&j.muted&&(j.setMuted(!1),!1):(j.setMuted(!0),!0),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",y);h.dispatchEvent(e)},50);break;case"readyState":var a=mejs.Utils.createEvent("canplay",y);h.dispatchEvent(a)}else g.push({type:"set",propName:n,value:e})}},i=0,r=a.length;i<r;i++)n(a[i]);for(var s=mejs.html5media.methods,o=function(e){y[e]=function(){if(null!==j)switch(e){case"play":return j.play();case"pause":return j.pause();case"load":return null}else g.push({type:"call",methodName:e})}},d=0,u=s.length;d<u;d++)o(s[d]);window["__ready__"+y.id]=function(e){if(h.dmPlayer=j=e,g.length)for(var t=0,a=g.length;t<a;t++){var n=g[t];if("set"===n.type){var i=n.propName,r=""+i.substring(0,1).toUpperCase()+i.substring(1);y["set"+r](n.value)}else"call"===n.type&&y[n.methodName]()}w=document.getElementById(y.id);for(var s=function(e){var t=mejs.Utils.createEvent(e.type,y);h.dispatchEvent(t)},o=0,d=(E=["mouseover","mouseout"]).length;o<d;o++)w.addEventListener(E[o],s,!1);h.originalNode.muted?(j.setVolume(0),j.setMuted(!0)):(j.setVolume(j.volume),j.setMuted(!1));for(var u,l=0,c=(E=(E=mejs.html5media.events).concat(["click","mouseover","mouseout"])).length;l<c;l++)"ended"!==(u=E[l])&&j.addEventListener(u,function(e){var t=mejs.Utils.createEvent(e.type,y);h.dispatchEvent(t)});j.addEventListener("ad_start",function(){var e=mejs.Utils.createEvent("play",y);h.dispatchEvent(e),e=mejs.Utils.createEvent("progress",y),h.dispatchEvent(e),e=mejs.Utils.createEvent("timeupdate",y),h.dispatchEvent(e)}),j.addEventListener("ad_timeupdate",function(){var e=mejs.Utils.createEvent("timeupdate",y);h.dispatchEvent(e)}),j.addEventListener("ad_pause",function(){var e=mejs.Utils.createEvent("pause",y);h.dispatchEvent(e)}),j.addEventListener("start",function(){if(j.muted){var e=mejs.Utils.createEvent("volumechange",y);h.dispatchEvent(e)}}),j.addEventListener("video_start",function(){var e=mejs.Utils.createEvent("play",y);h.dispatchEvent(e);var t=mejs.Utils.createEvent("playing",y);h.dispatchEvent(t)}),j.addEventListener("ad_timeupdate",function(){var e=mejs.Utils.createEvent("timeupdate",y);h.dispatchEvent(e)}),j.addEventListener("video_end",function(){var e=mejs.Utils.createEvent("ended",y);h.dispatchEvent(e),h.originalNode.getAttribute("loop")&&j.play()});for(var m=["rendererready","loadedmetadata","loadeddata","canplay"],p=0,v=m.length;p<v;p++){var f=mejs.Utils.createEvent(m[p],y);h.dispatchEvent(f)}};var l=document.createElement("div");l.id=y.id,h.appendChild(l),h.originalNode&&(l.style.width=h.originalNode.style.width,l.style.height=h.originalNode.style.height),h.originalNode.style.display="none";var c=p.getDailyMotionId(t[0].src),m={id:y.id,container:l,videoId:c};return m.params=Object.assign({},y.options.dailymotion),m.params.controls=!!h.originalNode.controls,h.originalNode.autoplay&&(m.params.autoplay=!0),h.originalNode.muted&&(m.params.mute=!0),m.params.api="1",p.enqueueIframe(m),y.hide=function(){y.pause(),w&&(w.style.display="none")},y.show=function(){w&&(w.style.display="")},y.setSize=function(e,t){w&&(w.width=e,w.height=t)},y.destroy=function(){j.destroy()},y}};mejs.Utils.typeChecks.push(function(e){return/\/\/((www\.)?dailymotion\.com|dai\.ly)/i.test(e)?"video/x-dailymotion":null}),window.dmAsyncInit=function(){p.apiReady()},mejs.Renderers.add(n)},{}]},{},[1]);

@@ -11,3 +11,3 @@ /*!

*
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
*/(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
'use strict';

@@ -14,0 +14,0 @@

@@ -12,2 +12,2 @@ /*!

*/
!function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[o]={exports:{}};t[o][0].call(d.exports,function(e){var n=t[o][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";var r={promise:null,load:function(e){"undefined"!=typeof FB?r._createPlayer(e):(r.promise=r.promise||mejs.Utils.loadScript("https://connect.facebook.net/"+e.options.lang+"/sdk.js"),r.promise.then(function(){FB.init(e.options),setTimeout(function(){r._createPlayer(e)},50)}))},_createPlayer:function(e){window["__ready__"+e.id]()}},i={name:"facebook",options:{prefix:"facebook",facebook:{appId:"",xfbml:!0,version:"v2.10",lang:"en_US"}},canPlayType:function(e){return~["video/facebook","video/x-facebook"].indexOf(e.toLowerCase())},create:function(e,t,n){function i(t){for(var n=0,r=t.length;n<r;n++){var i=mejs.Utils.createEvent(t[n],o);e.dispatchEvent(i)}}var a=[],o={},s=!1,u=!0,l=!1,d=null,c="",f="",p=e.originalNode.autoplay;o.options=t,o.id=e.id+"_"+t.prefix,o.mediaElement=e,mejs.Features.isiPhone&&e.originalNode.getAttribute("poster")&&(f=e.originalNode.getAttribute("poster"),e.originalNode.removeAttribute("poster"));for(var m=mejs.html5media.properties,v=0,g=m.length;v<g;v++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);o["get"+n]=function(){if(null!==d){switch(t){case"currentTime":return d.getCurrentPosition();case"duration":return d.getDuration();case"volume":return d.getVolume();case"paused":return u;case"ended":return l;case"muted":return d.isMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return c;case"readyState":return 4}return null}return null},o["set"+n]=function(n){if(null!==d)switch(t){case"src":var i="string"==typeof n?n:n[0].src;c=i,N.remove(),(N=document.createElement("div")).id=o.id,N.className="fb-video",N.setAttribute("data-href",i),N.setAttribute("data-allowfullscreen","true"),N.setAttribute("data-controls","false"),e.originalNode.parentNode.insertBefore(N,e.originalNode),e.originalNode.style.display="none",r.load({lang:o.options.lang,id:o.id}),FB.XFBML.parse(),p&&d.play();break;case"currentTime":d.seek(n);break;case"muted":n?d.mute():d.unmute(),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",o);e.dispatchEvent(t)},50);break;case"volume":d.setVolume(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",o);e.dispatchEvent(t)},50);break;case"readyState":var s=mejs.Utils.createEvent("canplay",o);e.dispatchEvent(s)}else a.push({type:"set",propName:t,value:n})}}(m[v]);for(var y=mejs.html5media.methods,b=0,h=y.length;b<h;b++)!function(e){o[e]=function(){if(null!==d)switch(e){case"play":return d.play();case"pause":return d.pause();case"load":return null}else a.push({type:"call",methodName:e})}}(y[b]);window["__ready__"+o.id]=function(){FB.Event.subscribe("xfbml.ready",function(t){if("video"===t.type&&o.id===t.id){e.fbPlayer=d=t.instance;var n=document.getElementById(o.id),r=n.offsetWidth,c=n.offsetHeight,f=["mouseover","mouseout"];o.setSize(r,c),e.originalNode.muted||d.unmute(),p&&d.play();for(var m=0,v=f.length;m<v;m++)n.addEventListener(f[m],function(t){var n=mejs.Utils.createEvent(t.type,o);e.dispatchEvent(n)});o.eventHandler={};for(var g=["startedPlaying","paused","finishedPlaying","startedBuffering","finishedBuffering"],y=0,b=g.length;y<b;y++){var h=g[y],N=o.eventHandler[h];void 0===N||null===N||mejs.Utils.isObjectEmpty(N)||"function"!=typeof N.removeListener||N.removeListener(h)}if(a.length)for(var E=0,w=a.length;E<w;E++){var k=a[E];if("set"===k.type){var _=k.propName,j=""+_.substring(0,1).toUpperCase()+_.substring(1);o["set"+j](k.value)}else"call"===k.type&&o[k.methodName]()}i(["rendererready","loadeddata","canplay","progress","loadedmetadata","timeupdate"]);var B=void 0;o.eventHandler.startedPlaying=d.subscribe("startedPlaying",function(){s||(s=!0),u=!1,l=!1,i(["play","playing","timeupdate"]),B=setInterval(function(){d.getCurrentPosition(),i(["timeupdate"])},250)}),o.eventHandler.paused=d.subscribe("paused",function(){u=!0,l=!1,i(["pause"])}),o.eventHandler.finishedPlaying=d.subscribe("finishedPlaying",function(){u=!0,l=!0,i(["ended"]),clearInterval(B),B=null}),o.eventHandler.startedBuffering=d.subscribe("startedBuffering",function(){i(["progress","timeupdate"])}),o.eventHandler.finishedBuffering=d.subscribe("finishedBuffering",function(){i(["progress","timeupdate"])})}})},c=n[0].src;var N=document.createElement("div");return N.id=o.id,N.className="fb-video",N.setAttribute("data-href",c),N.setAttribute("data-allowfullscreen","true"),N.setAttribute("data-controls",!!e.originalNode.controls),e.originalNode.parentNode.insertBefore(N,e.originalNode),e.originalNode.style.display="none",r.load({options:o.options.facebook,id:o.id}),o.hide=function(){o.pause(),d&&(N.style.display="none")},o.setSize=function(e){null===d||isNaN(e)||(N.style.width=e)},o.show=function(){d&&(N.style.display="")},o.destroy=function(){f&&e.originalNode.setAttribute("poster",f)},o}};mejs.Utils.typeChecks.push(function(e){return~e.toLowerCase().indexOf("//www.facebook")?"video/x-facebook":null}),mejs.Renderers.add(i)},{}]},{},[1]);
!function a(o,s,u){function l(n,e){if(!s[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(d)return d(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(e){var t=o[n][1][e];return l(t||e)},i,i.exports,a,o,s,u)}return s[n].exports}for(var d="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){"use strict";var p={promise:null,load:function(e){"undefined"!=typeof FB?p._createPlayer(e):(p.promise=p.promise||mejs.Utils.loadScript("https://connect.facebook.net/"+e.options.lang+"/sdk.js"),p.promise.then(function(){FB.init(e.options),setTimeout(function(){p._createPlayer(e)},50)}))},_createPlayer:function(e){window["__ready__"+e.id]()}},r={name:"facebook",options:{prefix:"facebook",facebook:{appId:"",xfbml:!0,version:"v2.10",lang:"en_US"}},canPlayType:function(e){return~["video/facebook","video/x-facebook"].indexOf(e.toLowerCase())},create:function(h,e,t){var N=[],E={},w=!1,k=!0,_=!1,j=null,i="",n="",B=h.originalNode.autoplay;E.options=e,E.id=h.id+"_"+e.prefix,E.mediaElement=h,mejs.Features.isiPhone&&h.originalNode.getAttribute("poster")&&(n=h.originalNode.getAttribute("poster"),h.originalNode.removeAttribute("poster"));for(var r=mejs.html5media.properties,a=function(r){var e=""+r.substring(0,1).toUpperCase()+r.substring(1);E["get"+e]=function(){if(null!==j){switch(r){case"currentTime":return j.getCurrentPosition();case"duration":return j.getDuration();case"volume":return j.getVolume();case"paused":return k;case"ended":return _;case"muted":return j.isMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return i;case"readyState":return 4}return null}return null},E["set"+e]=function(e){if(null!==j)switch(r){case"src":var t="string"==typeof e?e:e[0].src;i=t,f.remove(),(f=document.createElement("div")).id=E.id,f.className="fb-video",f.setAttribute("data-href",t),f.setAttribute("data-allowfullscreen","true"),f.setAttribute("data-controls","false"),h.originalNode.parentNode.insertBefore(f,h.originalNode),h.originalNode.style.display="none",p.load({lang:E.options.lang,id:E.id}),FB.XFBML.parse(),B&&j.play();break;case"currentTime":j.seek(e);break;case"muted":e?j.mute():j.unmute(),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",E);h.dispatchEvent(e)},50);break;case"volume":j.setVolume(e),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",E);h.dispatchEvent(e)},50);break;case"readyState":var n=mejs.Utils.createEvent("canplay",E);h.dispatchEvent(n)}else N.push({type:"set",propName:r,value:e})}},o=0,s=r.length;o<s;o++)a(r[o]);for(var u=mejs.html5media.methods,l=function(e){E[e]=function(){if(null!==j)switch(e){case"play":return j.play();case"pause":return j.pause();case"load":return null}else N.push({type:"call",methodName:e})}},d=0,c=u.length;d<c;d++)l(u[d]);function P(e){for(var t=0,n=e.length;t<n;t++){var r=mejs.Utils.createEvent(e[t],E);h.dispatchEvent(r)}}window["__ready__"+E.id]=function(){FB.Event.subscribe("xfbml.ready",function(e){if("video"===e.type&&E.id===e.id){h.fbPlayer=j=e.instance;var t=document.getElementById(E.id),n=t.offsetWidth,r=t.offsetHeight,i=["mouseover","mouseout"],a=function(e){var t=mejs.Utils.createEvent(e.type,E);h.dispatchEvent(t)};E.setSize(n,r),h.originalNode.muted||j.unmute(),B&&j.play();for(var o=0,s=i.length;o<s;o++)t.addEventListener(i[o],a);E.eventHandler={};for(var u=["startedPlaying","paused","finishedPlaying","startedBuffering","finishedBuffering"],l=0,d=u.length;l<d;l++){var c=u[l],f=E.eventHandler[c];null==f||mejs.Utils.isObjectEmpty(f)||"function"!=typeof f.removeListener||f.removeListener(c)}if(N.length)for(var p=0,m=N.length;p<m;p++){var v=N[p];if("set"===v.type){var g=v.propName,y=""+g.substring(0,1).toUpperCase()+g.substring(1);E["set"+y](v.value)}else"call"===v.type&&E[v.methodName]()}P(["rendererready","loadeddata","canplay","progress","loadedmetadata","timeupdate"]);var b=void 0;E.eventHandler.startedPlaying=j.subscribe("startedPlaying",function(){w||(w=!0),_=k=!1,P(["play","playing","timeupdate"]),b=setInterval(function(){j.getCurrentPosition(),P(["timeupdate"])},250)}),E.eventHandler.paused=j.subscribe("paused",function(){k=!0,_=!1,P(["pause"])}),E.eventHandler.finishedPlaying=j.subscribe("finishedPlaying",function(){_=k=!0,P(["ended"]),clearInterval(b),b=null}),E.eventHandler.startedBuffering=j.subscribe("startedBuffering",function(){P(["progress","timeupdate"])}),E.eventHandler.finishedBuffering=j.subscribe("finishedBuffering",function(){P(["progress","timeupdate"])})}})},i=t[0].src;var f=document.createElement("div");return f.id=E.id,f.className="fb-video",f.setAttribute("data-href",i),f.setAttribute("data-allowfullscreen","true"),f.setAttribute("data-controls",!!h.originalNode.controls),h.originalNode.parentNode.insertBefore(f,h.originalNode),h.originalNode.style.display="none",p.load({options:E.options.facebook,id:E.id}),E.hide=function(){E.pause(),j&&(f.style.display="none")},E.setSize=function(e){null===j||isNaN(e)||(f.style.width=e)},E.show=function(){j&&(f.style.display="")},E.destroy=function(){n&&h.originalNode.setAttribute("poster",n)},E}};mejs.Utils.typeChecks.push(function(e){return~e.toLowerCase().indexOf("//www.facebook")?"video/x-facebook":null}),mejs.Renderers.add(r)},{}]},{},[1]);

@@ -11,3 +11,3 @@ /*!

*
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
*/(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
'use strict';

@@ -14,0 +14,0 @@

@@ -12,2 +12,2 @@ /*!

*/
!function e(t,n,r){function a(s,o){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!o&&u)return u(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return a(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(e,t,n){"use strict";var r={promise:null,load:function(e){"undefined"!=typeof SC?r._createPlayer(e):(r.promise=r.promise||mejs.Utils.loadScript("https://w.soundcloud.com/player/api.js"),r.promise.then(function(){r._createPlayer(e)}))},_createPlayer:function(e){var t=SC.Widget(e.iframe);window["__ready__"+e.id](t)}},a={name:"soundcloud_iframe",options:{prefix:"soundcloud_iframe"},canPlayType:function(e){return~["video/soundcloud","video/x-soundcloud"].indexOf(e.toLowerCase())},create:function(e,t,n){var a={},i=[],s=e.originalNode.autoplay,o=null!==e.originalNode&&"video"===e.originalNode.tagName.toLowerCase(),u=0,d=0,c=0,l=!0,p=!1,f=null,v=null;a.options=t,a.id=e.id+"_"+t.prefix,a.mediaElement=e;for(var m=mejs.html5media.properties,h=0,y=m.length;h<y;h++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);a["get"+n]=function(){if(null!==f){switch(t){case"currentTime":return d;case"duration":return u;case"volume":return 1;case"paused":return l;case"ended":return p;case"muted":return!1;case"buffered":return{start:function(){return 0},end:function(){return c*u},length:1};case"src":return v?v.src:"";case"readyState":return 4}return null}return null},a["set"+n]=function(n){if(null!==f)switch(t){case"src":var r="string"==typeof n?n:n[0].src;f.load(r),s&&f.play();break;case"currentTime":f.seekTo(1e3*n);break;case"muted":n?f.setVolume(0):f.setVolume(1),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"volume":f.setVolume(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"readyState":var o=mejs.Utils.createEvent("canplay",a);e.dispatchEvent(o)}else i.push({type:"set",propName:t,value:n})}}(m[h]);for(var E=mejs.html5media.methods,g=0,S=E.length;g<S;g++)!function(e){a[e]=function(){if(null!==f)switch(e){case"play":return f.play();case"pause":return f.pause();case"load":return null}else i.push({type:"call",methodName:e})}}(E[g]);window["__ready__"+a.id]=function(t){if(e.scPlayer=f=t,s&&f.play(),i.length)for(var n=0,r=i.length;n<r;n++){var o=i[n];if("set"===o.type){var v=o.propName,m=""+v.substring(0,1).toUpperCase()+v.substring(1);a["set"+m](o.value)}else"call"===o.type&&a[o.methodName]()}f.bind(SC.Widget.Events.PLAY_PROGRESS,function(){l=!1,p=!1,f.getPosition(function(t){d=t/1e3;var n=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(n)})}),f.bind(SC.Widget.Events.PAUSE,function(){l=!0;var t=mejs.Utils.createEvent("pause",a);e.dispatchEvent(t)}),f.bind(SC.Widget.Events.PLAY,function(){l=!1,p=!1;var t=mejs.Utils.createEvent("play",a);e.dispatchEvent(t)}),f.bind(SC.Widget.Events.FINISHED,function(){l=!1,p=!0;var t=mejs.Utils.createEvent("ended",a);e.dispatchEvent(t)}),f.bind(SC.Widget.Events.READY,function(){f.getDuration(function(t){u=t/1e3;var n=mejs.Utils.createEvent("loadedmetadata",a);e.dispatchEvent(n)})}),f.bind(SC.Widget.Events.LOAD_PROGRESS,function(){f.getDuration(function(t){if(u>0){c=u*t;var n=mejs.Utils.createEvent("progress",a);e.dispatchEvent(n)}}),f.getDuration(function(t){u=t;var n=mejs.Utils.createEvent("loadedmetadata",a);e.dispatchEvent(n)})});for(var h=["rendererready","loadeddata","loadedmetadata","canplay"],y=0,E=h.length;y<E;y++){var g=mejs.Utils.createEvent(h[y],a);e.dispatchEvent(g)}},(v=document.createElement("iframe")).id=a.id,v.width=o?"100%":1,v.height=o?"100%":1,v.frameBorder=0,v.style.visibility=o?"visible":"hidden",v.src=n[0].src,v.scrolling="no",e.appendChild(v),e.originalNode.style.display="none";var U={iframe:v,id:a.id};return r.load(U),a.setSize=function(){},a.hide=function(){a.pause(),v&&(v.style.display="none")},a.show=function(){v&&(v.style.display="")},a.destroy=function(){f.destroy()},a}};mejs.Utils.typeChecks.push(function(e){return/\/\/(w\.)?soundcloud.com/i.test(e)?"video/x-soundcloud":null}),mejs.Renderers.add(a)},{}]},{},[1]);
!function i(s,o,u){function d(n,e){if(!o[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var a=o[n]={exports:{}};s[n][0].call(a.exports,function(e){var t=s[n][1][e];return d(t||e)},a,a.exports,i,s,o,u)}return o[n].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)d(u[e]);return d}({1:[function(e,t,n){"use strict";var b={promise:null,load:function(e){"undefined"!=typeof SC?b._createPlayer(e):(b.promise=b.promise||mejs.Utils.loadScript("https://w.soundcloud.com/player/api.js"),b.promise.then(function(){b._createPlayer(e)}))},_createPlayer:function(e){var t=SC.Widget(e.iframe);window["__ready__"+e.id](t)}},r={name:"soundcloud_iframe",options:{prefix:"soundcloud_iframe"},canPlayType:function(e){return~["video/soundcloud","video/x-soundcloud"].indexOf(e.toLowerCase())},create:function(c,e,t){var l={},p=[],f=c.originalNode.autoplay,n=null!==c.originalNode&&"video"===c.originalNode.tagName.toLowerCase(),v=0,m=0,h=0,y=!0,E=!1,g=null,a=null;l.options=e,l.id=c.id+"_"+e.prefix,l.mediaElement=c;for(var r=mejs.html5media.properties,i=function(r){var e=""+r.substring(0,1).toUpperCase()+r.substring(1);l["get"+e]=function(){if(null!==g){switch(r){case"currentTime":return m;case"duration":return v;case"volume":return 1;case"paused":return y;case"ended":return E;case"muted":return!1;case"buffered":return{start:function(){return 0},end:function(){return h*v},length:1};case"src":return a?a.src:"";case"readyState":return 4}return null}return null},l["set"+e]=function(e){if(null!==g)switch(r){case"src":var t="string"==typeof e?e:e[0].src;g.load(t),f&&g.play();break;case"currentTime":g.seekTo(1e3*e);break;case"muted":e?g.setVolume(0):g.setVolume(1),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",l);c.dispatchEvent(e)},50);break;case"volume":g.setVolume(e),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",l);c.dispatchEvent(e)},50);break;case"readyState":var n=mejs.Utils.createEvent("canplay",l);c.dispatchEvent(n)}else p.push({type:"set",propName:r,value:e})}},s=0,o=r.length;s<o;s++)i(r[s]);for(var u=mejs.html5media.methods,d=function(e){l[e]=function(){if(null!==g)switch(e){case"play":return g.play();case"pause":return g.pause();case"load":return null}else p.push({type:"call",methodName:e})}},S=0,U=u.length;S<U;S++)d(u[S]);window["__ready__"+l.id]=function(e){if(c.scPlayer=g=e,f&&g.play(),p.length)for(var t=0,n=p.length;t<n;t++){var r=p[t];if("set"===r.type){var a=r.propName,i=""+a.substring(0,1).toUpperCase()+a.substring(1);l["set"+i](r.value)}else"call"===r.type&&l[r.methodName]()}g.bind(SC.Widget.Events.PLAY_PROGRESS,function(){E=y=!1,g.getPosition(function(e){m=e/1e3;var t=mejs.Utils.createEvent("timeupdate",l);c.dispatchEvent(t)})}),g.bind(SC.Widget.Events.PAUSE,function(){y=!0;var e=mejs.Utils.createEvent("pause",l);c.dispatchEvent(e)}),g.bind(SC.Widget.Events.PLAY,function(){E=y=!1;var e=mejs.Utils.createEvent("play",l);c.dispatchEvent(e)}),g.bind(SC.Widget.Events.FINISHED,function(){y=!1,E=!0;var e=mejs.Utils.createEvent("ended",l);c.dispatchEvent(e)}),g.bind(SC.Widget.Events.READY,function(){g.getDuration(function(e){v=e/1e3;var t=mejs.Utils.createEvent("loadedmetadata",l);c.dispatchEvent(t)})}),g.bind(SC.Widget.Events.LOAD_PROGRESS,function(){g.getDuration(function(e){if(0<v){h=v*e;var t=mejs.Utils.createEvent("progress",l);c.dispatchEvent(t)}}),g.getDuration(function(e){v=e;var t=mejs.Utils.createEvent("loadedmetadata",l);c.dispatchEvent(t)})});for(var s=["rendererready","loadeddata","loadedmetadata","canplay"],o=0,u=s.length;o<u;o++){var d=mejs.Utils.createEvent(s[o],l);c.dispatchEvent(d)}},(a=document.createElement("iframe")).id=l.id,a.width=n?"100%":1,a.height=n?"100%":1,a.frameBorder=0,a.style.visibility=n?"visible":"hidden",a.src=t[0].src,a.scrolling="no",c.appendChild(a),c.originalNode.style.display="none";var _={iframe:a,id:l.id};return b.load(_),l.setSize=function(){},l.hide=function(){l.pause(),a&&(a.style.display="none")},l.show=function(){a&&(a.style.display="")},l.destroy=function(){g.destroy()},l}};mejs.Utils.typeChecks.push(function(e){return/\/\/(w\.)?soundcloud.com/i.test(e)?"video/x-soundcloud":null}),mejs.Renderers.add(r)},{}]},{},[1]);

@@ -11,3 +11,3 @@ /*!

*
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
*/(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
'use strict';

@@ -14,0 +14,0 @@

@@ -12,2 +12,2 @@ /*!

*/
!function e(t,n,r){function i(s,o){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!o&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";var r={promise:null,load:function(e){"undefined"!=typeof Twitch?r.promise=new Promise(function(e){e()}).then(function(){r._createPlayer(e)}):(r.promise=r.promise||mejs.Utils.loadScript("https://player.twitch.tv/js/embed/v1.js"),r.promise.then(function(){r._createPlayer(e)}))},_createPlayer:function(e){var t=new Twitch.Player(e.id,e);window["__ready__"+e.id](t)},getTwitchId:function(e){var t="";return e.indexOf("?")>0?""===(t=r.getTwitchIdFromParam(e))&&(t=r.getTwitchIdFromUrl(e)):t=r.getTwitchIdFromUrl(e),t},getTwitchIdFromParam:function(e){if(void 0===e||null===e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",r=0,i=t.length;r<i;r++){var a=t[r].split("=");if(~a[0].indexOf("channel")){n=a[1];break}if(~a[0].indexOf("video")){n="v"+a[1];break}}return n},getTwitchIdFromUrl:function(e){if(void 0===e||null===e||!e.trim().length)return null;var t=(e=e.split("?")[0]).substring(e.lastIndexOf("/")+1);return/^\d+$/i.test(t)?"v"+t:t},getTwitchType:function(e){return/^v\d+/i.test(e)?"video":"channel"}},i={name:"twitch_iframe",options:{prefix:"twitch_iframe"},canPlayType:function(e){return~["video/twitch","video/x-twitch"].indexOf(e.toLowerCase())},create:function(e,t,n){function i(t){for(var n=0,r=t.length;n<r;n++){var i=mejs.Utils.createEvent(t[n],a);e.dispatchEvent(i)}}var a={},s=[],o=r.getTwitchId(n[0].src),u=null,l=!0,d=!1,c=!1,h=1,f=1/0,p=0;a.options=t,a.id=e.id+"_"+t.prefix,a.mediaElement=e;for(var v=mejs.html5media.properties,m=0,g=v.length;m<g;m++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);a["get"+n]=function(){if(null!==u){switch(t){case"currentTime":return p=u.getCurrentTime();case"duration":return f=u.getDuration();case"volume":return h=u.getVolume();case"paused":return l=u.isPaused();case"ended":return d=u.getEnded();case"muted":return u.getMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return"channel"===r.getTwitchType(o)?u.getChannel():u.getVideo();case"readyState":return 4}return null}return null},a["set"+n]=function(n){if(null!==u)switch(t){case"src":var i="string"==typeof n?n:n[0].src,l=r.getTwitchId(i);"channel"===r.getTwitchType(o)?u.setChannel(l):u.setVideo(l);break;case"currentTime":u.seek(n),setTimeout(function(){var t=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(t)},50);break;case"muted":u.setMuted(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"volume":h=n,u.setVolume(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50);break;case"readyState":var d=mejs.Utils.createEvent("canplay",a);e.dispatchEvent(d)}else s.push({type:"set",propName:t,value:n})}}(v[m]);for(var y=mejs.html5media.methods,w=0,T=y.length;w<T;w++)!function(e){a[e]=function(){if(null!==u)switch(e){case"play":return l=!1,u.play();case"pause":return l=!0,u.pause();case"load":return null}else s.push({type:"call",methodName:e})}}(y[w]);window["__ready__"+a.id]=function(t){if(e.twitchPlayer=u=t,s.length)for(var n=0,r=s.length;n<r;n++){var o=s[n];if("set"===o.type){var h=o.propName,f=""+h.substring(0,1).toUpperCase()+h.substring(1);a["set"+f](o.value)}else"call"===o.type&&a[o.methodName]()}var p=document.getElementById(a.id).firstChild;p.style.width="100%",p.style.height="100%";for(var v=["mouseover","mouseout"],m=0,g=v.length;m<g;m++)p.addEventListener(v[m],function(t){var n=mejs.Utils.createEvent(t.type,a);e.dispatchEvent(n)},!1);var y=void 0;u.addEventListener(Twitch.Player.READY,function(){l=!1,d=!1,i(["rendererready","loadedmetadata","loadeddata","canplay"])}),u.addEventListener(Twitch.Player.PLAY,function(){c||(c=!0),l=!1,d=!1,i(["play","playing","progress"]),y=setInterval(function(){u.getCurrentTime(),i(["timeupdate"])},250)}),u.addEventListener(Twitch.Player.PAUSE,function(){l=!0,d=!1,u.getEnded()||i(["pause"])}),u.addEventListener(Twitch.Player.ENDED,function(){l=!0,d=!0,i(["ended"]),clearInterval(y),c=!1,y=null})};var E=e.originalNode.height,N=e.originalNode.width,P=document.createElement("div"),U=r.getTwitchType(o),_={id:a.id,width:N,height:E,playsinline:!1,autoplay:e.originalNode.autoplay,muted:e.originalNode.muted};return _[U]=o,P.id=a.id,P.style.width="100%",P.style.height="100%",e.originalNode.parentNode.insertBefore(P,e.originalNode),e.originalNode.style.display="none",e.originalNode.autoplay=!1,a.setSize=function(e,t){null===r||isNaN(e)||isNaN(t)||(P.setAttribute("width",e),P.setAttribute("height",t))},a.hide=function(){a.pause(),P.style.display="none"},a.show=function(){P.style.display=""},a.destroy=function(){},r.load(_),a}};mejs.Utils.typeChecks.push(function(e){return/\/\/(www|player).twitch.tv/i.test(e)?"video/x-twitch":null}),mejs.Renderers.add(i)},{}]},{},[1]);
!function a(s,o,u){function l(n,e){if(!o[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=o[n]={exports:{}};s[n][0].call(i.exports,function(e){var t=s[n][1][e];return l(t||e)},i,i.exports,a,s,o,u)}return o[n].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){"use strict";var N={promise:null,load:function(e){"undefined"!=typeof Twitch?N.promise=new Promise(function(e){e()}).then(function(){N._createPlayer(e)}):(N.promise=N.promise||mejs.Utils.loadScript("https://player.twitch.tv/js/embed/v1.js"),N.promise.then(function(){N._createPlayer(e)}))},_createPlayer:function(e){var t=new Twitch.Player(e.id,e);window["__ready__"+e.id](t)},getTwitchId:function(e){var t="";return 0<e.indexOf("?")?""===(t=N.getTwitchIdFromParam(e))&&(t=N.getTwitchIdFromUrl(e)):t=N.getTwitchIdFromUrl(e),t},getTwitchIdFromParam:function(e){if(null==e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",r=0,i=t.length;r<i;r++){var a=t[r].split("=");if(~a[0].indexOf("channel")){n=a[1];break}if(~a[0].indexOf("video")){n="v"+a[1];break}}return n},getTwitchIdFromUrl:function(e){if(null==e||!e.trim().length)return null;var t=(e=e.split("?")[0]).substring(e.lastIndexOf("/")+1);return/^\d+$/i.test(t)?"v"+t:t},getTwitchType:function(e){return/^v\d+/i.test(e)?"video":"channel"}},r={name:"twitch_iframe",options:{prefix:"twitch_iframe"},canPlayType:function(e){return~["video/twitch","video/x-twitch"].indexOf(e.toLowerCase())},create:function(h,e,t){var f={},p=[],a=N.getTwitchId(t[0].src),m=null,v=!1;f.options=e,f.id=h.id+"_"+e.prefix,f.mediaElement=h;for(var n=mejs.html5media.properties,r=function(i){var e=""+i.substring(0,1).toUpperCase()+i.substring(1);f["get"+e]=function(){if(null!==m){switch(i){case"currentTime":return m.getCurrentTime();case"duration":return m.getDuration();case"volume":return m.getVolume();case"paused":return m.isPaused();case"ended":return m.getEnded();case"muted":return m.getMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return"channel"===N.getTwitchType(a)?m.getChannel():m.getVideo();case"readyState":return 4}return null}return null},f["set"+e]=function(e){if(null!==m)switch(i){case"src":var t="string"==typeof e?e:e[0].src,n=N.getTwitchId(t);"channel"===N.getTwitchType(a)?m.setChannel(n):m.setVideo(n);break;case"currentTime":m.seek(e),setTimeout(function(){var e=mejs.Utils.createEvent("timeupdate",f);h.dispatchEvent(e)},50);break;case"muted":m.setMuted(e),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",f);h.dispatchEvent(e)},50);break;case"volume":e,m.setVolume(e),setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",f);h.dispatchEvent(e)},50);break;case"readyState":var r=mejs.Utils.createEvent("canplay",f);h.dispatchEvent(r)}else p.push({type:"set",propName:i,value:e})}},i=0,s=n.length;i<s;i++)r(n[i]);for(var o=mejs.html5media.methods,u=function(e){f[e]=function(){if(null!==m)switch(e){case"play":return!1,m.play();case"pause":return!0,m.pause();case"load":return null}else p.push({type:"call",methodName:e})}},l=0,c=o.length;l<c;l++)u(o[l]);function g(e){for(var t=0,n=e.length;t<n;t++){var r=mejs.Utils.createEvent(e[t],f);h.dispatchEvent(r)}}window["__ready__"+f.id]=function(e){if(h.twitchPlayer=m=e,p.length)for(var t=0,n=p.length;t<n;t++){var r=p[t];if("set"===r.type){var i=r.propName,a=""+i.substring(0,1).toUpperCase()+i.substring(1);f["set"+a](r.value)}else"call"===r.type&&f[r.methodName]()}var s=document.getElementById(f.id).firstChild;s.style.width="100%",s.style.height="100%";for(var o=["mouseover","mouseout"],u=function(e){var t=mejs.Utils.createEvent(e.type,f);h.dispatchEvent(t)},l=0,c=o.length;l<c;l++)s.addEventListener(o[l],u,!1);var d=void 0;m.addEventListener(Twitch.Player.READY,function(){!1,g(["rendererready","loadedmetadata","loadeddata","canplay"])}),m.addEventListener(Twitch.Player.PLAY,function(){v||(v=!0),!1,g(["play","playing","progress"]),d=setInterval(function(){m.getCurrentTime(),g(["timeupdate"])},250)}),m.addEventListener(Twitch.Player.PAUSE,function(){!0,!1,m.getEnded()||g(["pause"])}),m.addEventListener(Twitch.Player.ENDED,function(){!0,g(["ended"]),clearInterval(d),v=!1,d=null})};var d=h.originalNode.height,y=h.originalNode.width,w=document.createElement("div"),T=N.getTwitchType(a),E={id:f.id,width:y,height:d,playsinline:!1,autoplay:h.originalNode.autoplay,muted:h.originalNode.muted};return E[T]=a,w.id=f.id,w.style.width="100%",w.style.height="100%",h.originalNode.parentNode.insertBefore(w,h.originalNode),h.originalNode.style.display="none",h.originalNode.autoplay=!1,f.setSize=function(e,t){null===N||isNaN(e)||isNaN(t)||(w.setAttribute("width",e),w.setAttribute("height",t))},f.hide=function(){f.pause(),w.style.display="none"},f.show=function(){w.style.display=""},f.destroy=function(){},N.load(E),f}};mejs.Utils.typeChecks.push(function(e){return/\/\/(www|player).twitch.tv/i.test(e)?"video/x-twitch":null}),mejs.Renderers.add(r)},{}]},{},[1]);

@@ -11,3 +11,3 @@ /*!

*
*/(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
*/(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
'use strict';

@@ -374,2 +374,3 @@

vimeoContainer.setAttribute('allowfullscreen', 'true');
vimeoContainer.setAttribute('allow', 'autoplay');

@@ -376,0 +377,0 @@ mediaElement.originalNode.parentNode.insertBefore(vimeoContainer, mediaElement.originalNode);

@@ -12,2 +12,2 @@ /*!

*/
!function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";var r={promise:null,load:function(e){"undefined"!=typeof Vimeo?r._createPlayer(e):(r.promise=r.promise||mejs.Utils.loadScript("https://player.vimeo.com/api/player.js"),r.promise.then(function(){r._createPlayer(e)}))},_createPlayer:function(e){var t=new Vimeo.Player(e.iframe);window["__ready__"+e.id](t)},getVimeoId:function(e){return void 0===e||null===e?null:(e=e.split("?")[0],parseInt(e.substring(e.lastIndexOf("/")+1),10))}},i={name:"vimeo_iframe",options:{prefix:"vimeo_iframe"},canPlayType:function(e){return~["video/vimeo","video/x-vimeo"].indexOf(e.toLowerCase())},create:function(e,t,n){var i=[],a={},o=!0,s=1,u=s,c=0,l=0,d=!1,f=0,p=null,m="";a.options=t,a.id=e.id+"_"+t.prefix,a.mediaElement=e;for(var v=function(t){e.generateError("Code "+t.name+": "+t.message,n)},h=mejs.html5media.properties,y=0,g=h.length;y<g;y++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);a["get"+n]=function(){if(null!==p){switch(t){case"currentTime":return c;case"duration":return f;case"volume":return s;case"muted":return 0===s;case"paused":return o;case"ended":return d;case"src":return p.getVideoUrl().then(function(e){m=e}).catch(function(e){return v(e)}),m;case"buffered":return{start:function(){return 0},end:function(){return l*f},length:1};case"readyState":return 4}return null}return null},a["set"+n]=function(n){if(null!==p)switch(t){case"src":var o="string"==typeof n?n:n[0].src,l=r.getVimeoId(o);p.loadVideo(l).then(function(){e.originalNode.autoplay&&p.play()}).catch(function(e){return v(e)});break;case"currentTime":p.setCurrentTime(n).then(function(){c=n,setTimeout(function(){var t=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(t)},50)}).catch(function(e){return v(e)});break;case"volume":p.setVolume(n).then(function(){u=s=n,setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50)}).catch(function(e){return v(e)});break;case"loop":p.setLoop(n).catch(function(e){return v(e)});break;case"muted":n?p.setVolume(0).then(function(){s=0,setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50)}).catch(function(e){return v(e)}):p.setVolume(u).then(function(){s=u,setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",a);e.dispatchEvent(t)},50)}).catch(function(e){return v(e)});break;case"readyState":var d=mejs.Utils.createEvent("canplay",a);e.dispatchEvent(d)}else i.push({type:"set",propName:t,value:n})}}(h[y]);for(var E=mejs.html5media.methods,U=0,b=E.length;U<b;U++)!function(e){a[e]=function(){if(null!==p)switch(e){case"play":return o=!1,p.play();case"pause":return o=!0,p.pause();case"load":return null}else i.push({type:"call",methodName:e})}}(E[U]);window["__ready__"+a.id]=function(t){if(e.vimeoPlayer=p=t,i.length)for(var n=0,r=i.length;n<r;n++){var u=i[n];if("set"===u.type){var m=u.propName,h=""+m.substring(0,1).toUpperCase()+m.substring(1);a["set"+h](u.value)}else"call"===u.type&&a[u.methodName]()}e.originalNode.muted&&(p.setVolume(0),s=0);for(var y=document.getElementById(a.id),g=void 0,E=0,U=(g=["mouseover","mouseout"]).length;E<U;E++)y.addEventListener(g[E],function(t){var n=mejs.Utils.createEvent(t.type,a);e.dispatchEvent(n)},!1);p.on("loaded",function(){p.getDuration().then(function(t){if((f=t)>0&&(l=f*t,e.originalNode.autoplay)){o=!1,d=!1;var n=mejs.Utils.createEvent("play",a);e.dispatchEvent(n)}}).catch(function(e){v(e)})}),p.on("progress",function(){p.getDuration().then(function(t){if((f=t)>0&&(l=f*t,e.originalNode.autoplay)){var n=mejs.Utils.createEvent("play",a);e.dispatchEvent(n);var r=mejs.Utils.createEvent("playing",a);e.dispatchEvent(r)}var i=mejs.Utils.createEvent("progress",a);e.dispatchEvent(i)}).catch(function(e){return v(e)})}),p.on("timeupdate",function(){p.getCurrentTime().then(function(t){c=t;var n=mejs.Utils.createEvent("timeupdate",a);e.dispatchEvent(n)}).catch(function(e){return v(e)})}),p.on("play",function(){o=!1,d=!1;var t=mejs.Utils.createEvent("play",a);e.dispatchEvent(t);var n=mejs.Utils.createEvent("playing",a);e.dispatchEvent(n)}),p.on("pause",function(){o=!0,d=!1;var t=mejs.Utils.createEvent("pause",a);e.dispatchEvent(t)}),p.on("ended",function(){o=!1,d=!0;var t=mejs.Utils.createEvent("ended",a);e.dispatchEvent(t)});for(var b=0,j=(g=["rendererready","loadedmetadata","loadeddata","canplay"]).length;b<j;b++){var w=mejs.Utils.createEvent(g[b],a);e.dispatchEvent(w)}};var j=e.originalNode.height,w=e.originalNode.width,N=document.createElement("iframe"),_="https://player.vimeo.com/video/"+r.getVimeoId(n[0].src),x=~n[0].src.indexOf("?")?"?"+n[0].src.slice(n[0].src.indexOf("?")+1):"";return x&&e.originalNode.autoplay&&-1===x.indexOf("autoplay")&&(x+="&autoplay=1"),x&&e.originalNode.loop&&-1===x.indexOf("loop")&&(x+="&loop=1"),N.setAttribute("id",a.id),N.setAttribute("width",w),N.setAttribute("height",j),N.setAttribute("frameBorder","0"),N.setAttribute("src",""+_+x),N.setAttribute("webkitallowfullscreen","true"),N.setAttribute("mozallowfullscreen","true"),N.setAttribute("allowfullscreen","true"),e.originalNode.parentNode.insertBefore(N,e.originalNode),e.originalNode.style.display="none",r.load({iframe:N,id:a.id}),a.hide=function(){a.pause(),p&&(N.style.display="none")},a.setSize=function(e,t){N.setAttribute("width",e),N.setAttribute("height",t)},a.show=function(){p&&(N.style.display="")},a.destroy=function(){},a}};mejs.Utils.typeChecks.push(function(e){return/(\/\/player\.vimeo|vimeo\.com)/i.test(e)?"video/x-vimeo":null}),mejs.Renderers.add(i)},{}]},{},[1]);
!function a(o,s,u){function c(n,e){if(!s[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(l)return l(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(e){var t=o[n][1][e];return c(t||e)},i,i.exports,a,o,s,u)}return s[n].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,n){"use strict";var V={promise:null,load:function(e){"undefined"!=typeof Vimeo?V._createPlayer(e):(V.promise=V.promise||mejs.Utils.loadScript("https://player.vimeo.com/api/player.js"),V.promise.then(function(){V._createPlayer(e)}))},_createPlayer:function(e){var t=new Vimeo.Player(e.iframe);window["__ready__"+e.id](t)},getVimeoId:function(e){return null==e?null:(e=e.split("?")[0],parseInt(e.substring(e.lastIndexOf("/")+1),10))}},r={name:"vimeo_iframe",options:{prefix:"vimeo_iframe"},canPlayType:function(e){return~["video/vimeo","video/x-vimeo"].indexOf(e.toLowerCase())},create:function(m,e,t){var v=[],h={},y=!0,g=1,a=g,E=0,b=0,U=!1,j=0,w=null,n="";h.options=e,h.id=m.id+"_"+e.prefix,h.mediaElement=m;for(var N=function(e){m.generateError("Code "+e.name+": "+e.message,t)},r=mejs.html5media.properties,i=function(i){var e=""+i.substring(0,1).toUpperCase()+i.substring(1);h["get"+e]=function(){if(null!==w){switch(i){case"currentTime":return E;case"duration":return j;case"volume":return g;case"muted":return 0===g;case"paused":return y;case"ended":return U;case"src":return w.getVideoUrl().then(function(e){n=e}).catch(function(e){return N(e)}),n;case"buffered":return{start:function(){return 0},end:function(){return b*j},length:1};case"readyState":return 4}return null}return null},h["set"+e]=function(e){if(null!==w)switch(i){case"src":var t="string"==typeof e?e:e[0].src,n=V.getVimeoId(t);w.loadVideo(n).then(function(){m.originalNode.autoplay&&w.play()}).catch(function(e){return N(e)});break;case"currentTime":w.setCurrentTime(e).then(function(){E=e,setTimeout(function(){var e=mejs.Utils.createEvent("timeupdate",h);m.dispatchEvent(e)},50)}).catch(function(e){return N(e)});break;case"volume":w.setVolume(e).then(function(){a=g=e,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",h);m.dispatchEvent(e)},50)}).catch(function(e){return N(e)});break;case"loop":w.setLoop(e).catch(function(e){return N(e)});break;case"muted":e?w.setVolume(0).then(function(){g=0,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",h);m.dispatchEvent(e)},50)}).catch(function(e){return N(e)}):w.setVolume(a).then(function(){g=a,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",h);m.dispatchEvent(e)},50)}).catch(function(e){return N(e)});break;case"readyState":var r=mejs.Utils.createEvent("canplay",h);m.dispatchEvent(r)}else v.push({type:"set",propName:i,value:e})}},o=0,s=r.length;o<s;o++)i(r[o]);for(var u=mejs.html5media.methods,c=function(e){h[e]=function(){if(null!==w)switch(e){case"play":return y=!1,w.play();case"pause":return y=!0,w.pause();case"load":return null}else v.push({type:"call",methodName:e})}},l=0,d=u.length;l<d;l++)c(u[l]);window["__ready__"+h.id]=function(e){if(m.vimeoPlayer=w=e,v.length)for(var t=0,n=v.length;t<n;t++){var r=v[t];if("set"===r.type){var i=r.propName,a=""+i.substring(0,1).toUpperCase()+i.substring(1);h["set"+a](r.value)}else"call"===r.type&&h[r.methodName]()}m.originalNode.muted&&(w.setVolume(0),g=0);for(var o=document.getElementById(h.id),s=void 0,u=function(e){var t=mejs.Utils.createEvent(e.type,h);m.dispatchEvent(t)},c=0,l=(s=["mouseover","mouseout"]).length;c<l;c++)o.addEventListener(s[c],u,!1);w.on("loaded",function(){w.getDuration().then(function(e){if(0<(j=e)&&(b=j*e,m.originalNode.autoplay)){U=y=!1;var t=mejs.Utils.createEvent("play",h);m.dispatchEvent(t)}}).catch(function(e){N(e)})}),w.on("progress",function(){w.getDuration().then(function(e){if(0<(j=e)&&(b=j*e,m.originalNode.autoplay)){var t=mejs.Utils.createEvent("play",h);m.dispatchEvent(t);var n=mejs.Utils.createEvent("playing",h);m.dispatchEvent(n)}var r=mejs.Utils.createEvent("progress",h);m.dispatchEvent(r)}).catch(function(e){return N(e)})}),w.on("timeupdate",function(){w.getCurrentTime().then(function(e){E=e;var t=mejs.Utils.createEvent("timeupdate",h);m.dispatchEvent(t)}).catch(function(e){return N(e)})}),w.on("play",function(){U=y=!1;var e=mejs.Utils.createEvent("play",h);m.dispatchEvent(e);var t=mejs.Utils.createEvent("playing",h);m.dispatchEvent(t)}),w.on("pause",function(){y=!0,U=!1;var e=mejs.Utils.createEvent("pause",h);m.dispatchEvent(e)}),w.on("ended",function(){y=!1,U=!0;var e=mejs.Utils.createEvent("ended",h);m.dispatchEvent(e)});for(var d=0,p=(s=["rendererready","loadedmetadata","loadeddata","canplay"]).length;d<p;d++){var f=mejs.Utils.createEvent(s[d],h);m.dispatchEvent(f)}};var p=m.originalNode.height,f=m.originalNode.width,_=document.createElement("iframe"),x="https://player.vimeo.com/video/"+V.getVimeoId(t[0].src),A=~t[0].src.indexOf("?")?"?"+t[0].src.slice(t[0].src.indexOf("?")+1):"";return A&&m.originalNode.autoplay&&-1===A.indexOf("autoplay")&&(A+="&autoplay=1"),A&&m.originalNode.loop&&-1===A.indexOf("loop")&&(A+="&loop=1"),_.setAttribute("id",h.id),_.setAttribute("width",f),_.setAttribute("height",p),_.setAttribute("frameBorder","0"),_.setAttribute("src",""+x+A),_.setAttribute("webkitallowfullscreen","true"),_.setAttribute("mozallowfullscreen","true"),_.setAttribute("allowfullscreen","true"),_.setAttribute("allow","autoplay"),m.originalNode.parentNode.insertBefore(_,m.originalNode),m.originalNode.style.display="none",V.load({iframe:_,id:h.id}),h.hide=function(){h.pause(),w&&(_.style.display="none")},h.setSize=function(e,t){_.setAttribute("width",e),_.setAttribute("height",t)},h.show=function(){w&&(_.style.display="")},h.destroy=function(){},h}};mejs.Utils.typeChecks.push(function(e){return/(\/\/player\.vimeo|vimeo\.com)/i.test(e)?"video/x-vimeo":null}),mejs.Renderers.add(r)},{}]},{},[1]);

@@ -410,3 +410,3 @@ # Installation

### Browsers with JavaScript disabled (Optional)
In very rare cases, you might have a non-HTML5 browser with Flash turned on and JavaScript turned off. In that specific case, you can also include the Flash `<object>` code. For more information abput this approach, please read [Video for Everybody!](http://camendesign.com/code/video_for_everybody) documentation.
In very rare cases, you might have a non-HTML5 browser with Flash turned on and JavaScript turned off. In that specific case, you can also include the Flash `<object>` code. For more information about this approach, please read [Video for Everybody!](http://camendesign.com/code/video_for_everybody) documentation.
```html

@@ -413,0 +413,0 @@ <video width="320" height="240" poster="poster.jpg" controls="controls" preload="none">

@@ -30,1 +30,2 @@ # Resources

* [MediaElementPlayer.js using Chromecast and dynamic sources](https://jsfiddle.net/Luuwnjfm/18/)
* [MediaElementPlayer.js Video Snapshot Plugin](https://github.com/Codecsocean/mediaelement-snapshot)
Package.describe({
name: 'johndyer:mediaelement',
summary: '*Official* MediaElement.js: <video> and <audio> made easy. One file. Any browser. Same UI.',
version: '4.2.9',
version: '4.2.10',
git: 'https://github.com/mediaelement/mediaelement'

@@ -61,2 +61,2 @@ });

});
});
{
"name": "mediaelement",
"license": "MIT",
"version": "4.2.9",
"version": "4.2.10",
"main": "full.js",

@@ -17,4 +17,4 @@ "repository": {

"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-preset-env": "^1.5.0",
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.24.1",

@@ -28,5 +28,5 @@ "babelify": "^7.3.0",

"cssnano": "^3.8.0",
"grunt": "^1.0.1",
"grunt": "^1.0.4",
"grunt-babel": "^6.0.0",
"grunt-browserify": "^5.0.0",
"grunt-browserify": "^5.3.0",
"grunt-cli": "^0.1.13",

@@ -37,3 +37,3 @@ "grunt-contrib-clean": "^1.1.0",

"grunt-contrib-uglify": "^3.0.1",
"grunt-contrib-watch": "^1.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-eslint": "^19.0.0",

@@ -40,0 +40,0 @@ "grunt-postcss": "^0.8.0",

@@ -9,3 +9,3 @@ 'use strict';

// version number
mejs.version = '4.2.9';
mejs.version = '4.2.10';

@@ -56,2 +56,2 @@ // Basic HTML5 settings

export default mejs;
export default mejs;

@@ -201,3 +201,3 @@ 'use strict';

percentage = (pos / width);
t.newTime = (percentage <= 0.02) ? 0 : percentage * t.getDuration();
t.newTime = percentage * t.getDuration();

@@ -498,3 +498,3 @@ // fake seek to where the mouse is

updateSlider();
} else if (!broadcast || t.options.forceLive) {
} else if (!broadcast && t.options.forceLive) {
const label = document.createElement('span');

@@ -501,0 +501,0 @@ label.className = `${t.options.classPrefix}broadcast`;

@@ -159,2 +159,3 @@ 'use strict';

anchor.setAttribute('aria-valuemax', 100);
anchor.setAttribute('aria-valuenow', 100);
anchor.setAttribute('role', 'slider');

@@ -161,0 +162,0 @@ anchor.innerHTML += `<span class="${t.options.classPrefix}offscreen">${volumeControlText}</span>` +

@@ -409,3 +409,4 @@ 'use strict';

vimeoContainer.setAttribute('allowfullscreen', 'true');
vimeoContainer.setAttribute('allow', 'autoplay');
mediaElement.originalNode.parentNode.insertBefore(vimeoContainer, mediaElement.originalNode);

@@ -412,0 +413,0 @@ mediaElement.originalNode.style.display = 'none';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc