Skip to content
Extraits de code Groupes Projets
Valider 17d2bbc7 rédigé par real3t@gmail.com's avatar real3t@gmail.com
Parcourir les fichiers

refs #3692 : Passage de la lib mediaelement en 4.2.3 (depuis 4.1.2 ;...

refs #3692 : Passage de la lib mediaelement en 4.2.3 (depuis 4.1.2 ; https://github.com/mediaelement/mediaelement/blob/master/changelog.md)

Remarques : 
* améliore la présentation des .ogg sous Edge (mais ils ne sont pas plus joués)
* .flv non joué dans Chrome et Edge (mais c'est pareil avec le fichier de demo de la lib). FireFox est OK sur la démo, mais pas avec SPIP)
* cette version laisse tomber IE9 et IE10 (0.4%)
parent 2710d966
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 2636 ajouts et 8113 suppressions
...@@ -238,9 +238,7 @@ lib/mejs/mediaelement.min.js -text ...@@ -238,9 +238,7 @@ lib/mejs/mediaelement.min.js -text
lib/mejs/mediaelementplayer-legacy.css -text lib/mejs/mediaelementplayer-legacy.css -text
lib/mejs/mediaelementplayer-legacy.min.css -text lib/mejs/mediaelementplayer-legacy.min.css -text
lib/mejs/mediaelementplayer.css -text lib/mejs/mediaelementplayer.css -text
lib/mejs/mediaelementplayer.js -text
lib/mejs/mediaelementplayer.min.css -text lib/mejs/mediaelementplayer.min.css -text
lib/mejs/mediaelementplayer.min.js -text
lib/mejs/mejs-controls.png -text lib/mejs/mejs-controls.png -text
lib/mejs/mejs-controls.svg -text lib/mejs/mejs-controls.svg -text
lib/mejs/renderers/dailymotion.js -text lib/mejs/renderers/dailymotion.js -text
......
Ce diff est replié.
Impossible d'afficher diff de source : il est trop volumineux. Options pour résoudre ce problème : voir le blob.
Aucun aperçu pour ce type de fichier
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
lib/mejs/mejs-controls.png

6,23 ko | W: | H:

lib/mejs/mejs-controls.png

2,82 ko | W: | H:

lib/mejs/mejs-controls.png
lib/mejs/mejs-controls.png
lib/mejs/mejs-controls.png
lib/mejs/mejs-controls.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="400" height="120" viewBox="0 0 400 120"><style>.st0{fill:#FFFFFF;width:16px;height:16px} .st1{fill:none;stroke:#FFFFFF;stroke-width:1.5;stroke-linecap:round;} .st2{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-linecap:round;} .st3{fill:none;stroke:#FFFFFF;} .st4{fill:#231F20;} .st5{opacity:0.75;fill:none;stroke:#FFFFFF;stroke-width:5;enable-background:new;} .st6{fill:none;stroke:#FFFFFF;stroke-width:5;} .st7{opacity:0.4;fill:#FFFFFF;enable-background:new;} .st8{opacity:0.6;fill:#FFFFFF;enable-background:new;} .st9{opacity:0.8;fill:#FFFFFF;enable-background:new;} .st10{opacity:0.9;fill:#FFFFFF;enable-background:new;} .st11{opacity:0.3;fill:#FFFFFF;enable-background:new;} .st12{opacity:0.5;fill:#FFFFFF;enable-background:new;} .st13{opacity:0.7;fill:#FFFFFF;enable-background:new;}</style><path class="st0" d="M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7z"/><path class="st0" d="M24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1z"/><path class="st0" d="M81 1.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4z"/><path class="st0" d="M112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1z"/><path class="st0" d="M67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z"/><path class="st1" d="M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8"/><path class="st1" d="M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9"/><path class="st0" d="M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z"/><path class="st2" d="M52.8 7l5.4 5.4m-5.4 0L58.2 7"/><path class="st3" d="M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9"/><path class="st0" d="M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3z"/><path class="st0" d="M143.2 3h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z"/><path class="st4" d="M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z"/><path class="st0" d="M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z"/><path class="st5" d="M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z"/><path class="st0" d="M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z"/><path class="st6" d="M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z"/><circle class="st0" cx="201.9" cy="47.1" r="8.1"/><circle class="st7" cx="233.9" cy="79" r="5"/><circle class="st8" cx="201.9" cy="110.9" r="6"/><circle class="st9" cx="170.1" cy="79" r="7"/><circle class="st10" cx="178.2" cy="56.3" r="7.5"/><circle class="st11" cx="226.3" cy="56.1" r="4.5"/><circle class="st12" cx="225.8" cy="102.8" r="5.5"/><circle class="st13" cx="178.2" cy="102.8" r="6.5"/><path class="st0" d="M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z"/><path class="st0" d="M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2z"/><path class="st0" d="M183.4 3.2c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z"/></svg>
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="400px" height="120px" viewBox="0 0 400 120" style="enable-background:new 0 0 400 120;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;width:16px;height:16px}
.st1{fill:none;stroke:#FFFFFF;stroke-width:1.5;stroke-linecap:round;}
.st2{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-linecap:round;}
.st3{fill:none;stroke:#FFFFFF;}
.st4{fill:#231F20;}
.st5{opacity:0.75;fill:none;stroke:#FFFFFF;stroke-width:5;enable-background:new;}
.st6{fill:none;stroke:#FFFFFF;stroke-width:5;}
.st7{opacity:0.4;fill:#FFFFFF;enable-background:new;}
.st8{opacity:0.6;fill:#FFFFFF;enable-background:new;}
.st9{opacity:0.8;fill:#FFFFFF;enable-background:new;}
.st10{opacity:0.9;fill:#FFFFFF;enable-background:new;}
.st11{opacity:0.3;fill:#FFFFFF;enable-background:new;}
.st12{opacity:0.5;fill:#FFFFFF;enable-background:new;}
.st13{opacity:0.7;fill:#FFFFFF;enable-background:new;}
</style>
<g id="controls">
<g id="play">
<path class="st0" d="M16.5,8.5c0.3,0.1,0.4,0.5,0.2,0.8c-0.1,0.1-0.1,0.2-0.2,0.2l-11.4,7c-0.5,0.3-0.8,0.1-0.8-0.5V2
c0-0.5,0.4-0.8,0.8-0.5L16.5,8.5z"/>
</g>
<g id="pause">
<g>
<path class="st0" d="M24,1h2.2c0.6,0,1,0.4,1,1v14c0,0.6-0.4,1-1,1H24c-0.6,0-1-0.4-1-1V2C23,1.5,23.4,1,24,1z"/>
<path class="st0" d="M33.8,1H36c0.6,0,1,0.4,1,1v14c0,0.6-0.4,1-1,1h-2.2c-0.6,0-1-0.4-1-1V2C32.8,1.5,33.2,1,33.8,1z"/>
</g>
</g>
<g id="fullscreen">
<g id="enter">
<path class="st0" d="M81,1.4c0-0.6,0.4-1,1-1h5.4c0.6,0,0.7,0.3,0.3,0.7l-6,6C81.3,7.5,81,7.4,81,6.8V1.4z"/>
<path class="st0" d="M81,17.2c0,0.6,0.4,1,1,1h5.4c0.6,0,0.7-0.3,0.3-0.7l-6-6c-0.4-0.4-0.7-0.3-0.7,0.3L81,17.2z"/>
<path class="st0" d="M98.8,1.4c0-0.6-0.4-1-1-1h-5.4c-0.6,0-0.7,0.3-0.3,0.7l6,6c0.4,0.4,0.7,0.3,0.7-0.3
C98.8,6.8,98.8,1.4,98.8,1.4z"/>
<path class="st0" d="M98.8,17.2c0,0.6-0.4,1-1,1h-5.4c-0.6,0-0.7-0.3-0.3-0.7l6-6c0.4-0.4,0.7-0.3,0.7,0.3
C98.8,11.8,98.8,17.2,98.8,17.2z"/>
</g>
<g id="exit">
<g>
<path class="st0" d="M112.7,5c0,0.6,0.4,1,1,1h4.1c0.6,0,0.7-0.3,0.3-0.7l-4.7-4.7c-0.4-0.4-0.7-0.3-0.7,0.3
C112.7,0.9,112.7,5,112.7,5z"/>
<path class="st0" d="M105.6,6c0.6,0,1-0.4,1-1V0.9c0-0.6-0.3-0.7-0.7-0.3l-4.7,4.7c-0.4,0.4-0.3,0.7,0.3,0.7L105.6,6z"/>
<path class="st0" d="M106.6,13.1c0-0.6-0.4-1-1-1h-4.1c-0.6,0-0.7,0.3-0.3,0.7l4.7,4.7c0.4,0.4,0.7,0.3,0.7-0.3
C106.6,17.2,106.6,13.1,106.6,13.1z"/>
<path class="st0" d="M113.7,12.1c-0.6,0-1,0.4-1,1v4.1c0,0.5,0.3,0.7,0.7,0.3l4.7-4.7c0.4-0.4,0.3-0.7-0.3-0.7H113.7z"/>
</g>
</g>
</g>
<g id="volume">
<g id="unmuted">
<path class="st0" d="M67,5.8c-0.5,0.4-1.2,0.6-1.8,0.6H62c-0.6,0-1,0.4-1,1v5.7c0,0.6,0.4,1,1,1h3.2c0.3,0,0.7,0,1,0
c0.3,0.2,0.5,0.4,0.8,0.6l3.5,2.6c0.4,0.3,0.8,0.1,0.8-0.4V3.5c0-0.5-0.4-0.7-0.8-0.4L67,5.8z"/>
<path class="st1" d="M73.9,2.5c0,0,3.9-0.8,3.9,7.7S73.9,18,73.9,18"/>
<path class="st1" d="M72.6,6.4c0,0,2.6-0.4,2.6,3.8s-2.6,3.9-2.6,3.9"/>
</g>
<g id="muted">
<path class="st0" d="M47,5.8c-0.5,0.4-1.2,0.6-1.8,0.6H42c-0.6,0-1,0.4-1,1v5.7c0,0.6,0.4,1,1,1h3.2c0.3,0,0.7,0,1,0
c0.3,0.2,0.5,0.4,0.8,0.6l3.5,2.6c0.4,0.3,0.8,0.1,0.8-0.4V3.5c0-0.5-0.4-0.7-0.8-0.4L47,5.8z"/>
<line class="st2" x1="52.8" y1="7" x2="58.2" y2="12.4"/>
<line class="st2" x1="52.8" y1="12.4" x2="58.2" y2="7"/>
</g>
</g>
<g id="closed_captions">
<path class="st3" d="M128.7,8.6c-6.2-4.2-6.5,7.8,0,3.9"/>
<path class="st3" d="M135.2,8.6c-6.2-4.2-6.5,7.8,0,3.9"/>
<path class="st0" d="M122.2,3.4h15.7v13.1h-15.7V3.4z M120.8,2v15.7h18.3V2H120.8z"/>
</g>
<g>
<path class="st0" d="M143.2,3h14c1.1,0,2,0.9,2,2v10c0,1.1-0.9,2-2,2h-14c-1.1,0-2-0.9-2-2V5C141.2,3.9,142.1,3,143.2,3z"/>
<path class="st4" d="M146.4,13.8c-0.8,0-1.6-0.4-2.1-1c-1.1-1.4-1-3.4,0.1-4.8c0.5-0.6,2-1.7,4.6,0.2L148.4,9
c-1.4-1-2.6-1.1-3.3-0.3c-0.8,1-0.8,2.4-0.1,3.5c0.7,0.9,1.9,0.8,3.4-0.1l0.5,0.9C148.2,13.5,147.3,13.7,146.4,13.8z"/>
<path class="st4" d="M153.9,13.8c-0.8,0-1.6-0.4-2.1-1c-1.1-1.4-1-3.4,0.1-4.8c0.5-0.6,2-1.7,4.6,0.2L156,9
c-1.4-1-2.6-1.1-3.3-0.3c-0.8,1-0.8,2.4-0.1,3.5c0.7,0.9,1.9,0.8,3.4-0.1l0.5,0.9C155.7,13.5,154.8,13.7,153.9,13.8z"/>
</g>
</g>
<g id="big_play">
<g id="big_play_opaque">
<path class="st0" d="M60.3,77c0.6,0.2,0.8,0.8,0.6,1.4c-0.1,0.3-0.3,0.5-0.6,0.6L30,96.5c-1,0.6-1.7,0.1-1.7-1v-35
c0-1.1,0.8-1.5,1.7-1L60.3,77z"/>
<path class="st5" d="M2.5,79c0-20.7,16.8-37.5,37.5-37.5S77.5,58.3,77.5,79S60.7,116.5,40,116.5S2.5,99.7,2.5,79L2.5,79z"/>
</g>
<g id="big_play_hover">
<path class="st0" d="M140.3,77c0.6,0.2,0.8,0.8,0.6,1.4c-0.1,0.3-0.3,0.5-0.6,0.6L110,96.5c-1,0.6-1.7,0.1-1.7-1v-35
c0-1.1,0.8-1.5,1.7-1L140.3,77z"/>
<path class="st6" d="M82.5,79c0-20.7,16.8-37.5,37.5-37.5s37.5,16.8,37.5,37.5s-16.8,37.5-37.5,37.5S82.5,99.7,82.5,79z"/>
</g>
<g id="loading">
<circle class="st0" cx="201.9" cy="47.1" r="8.1"/>
<circle class="st7" cx="233.9" cy="79" r="5"/>
<circle class="st8" cx="201.9" cy="110.9" r="6"/>
<circle class="st9" cx="170.1" cy="79" r="7"/>
<circle class="st10" cx="178.2" cy="56.3" r="7.5"/>
<circle class="st11" cx="226.3" cy="56.1" r="4.5"/>
<circle class="st12" cx="225.8" cy="102.8" r="5.5"/>
<circle class="st13" cx="178.2" cy="102.8" r="6.5"/>
</g>
</g>
<g id="replay">
<path class="st0" d="M178,9.4c0,0.4-0.4,0.7-0.9,0.7c-0.1,0-0.2,0-0.2-0.1l-4.9-1.8c-0.5-0.2-0.6-0.6-0.1-0.8l6.2-3.6
c0.5-0.3,0.8-0.1,0.7,0.5L178,9.4z"/>
<path class="st0" d="M169.4,15.9c-1,0-2-0.2-2.9-0.7c-2-1-3.2-3-3.2-5.2c0.1-3.4,2.9-6,6.3-6c2.5,0.1,4.8,1.7,5.6,4.1l0.1-0.1
l2.1,1.1c-0.6-4.4-4.7-7.5-9.1-6.9c-3.9,0.6-6.9,3.9-7,7.9c0,2.9,1.7,5.6,4.3,7c1.2,0.6,2.5,0.9,3.8,1c2.6,0,5-1.2,6.6-3.3
l-1.8-0.9C173,15.1,171.2,15.9,169.4,15.9z"/>
</g>
<g id="chapters">
<path class="st0" d="M183.4,3.2L183.4,3.2c0.8,0,1.5,0.7,1.5,1.5l0,0c0,0.8-0.7,1.5-1.5,1.5l0,0c-0.8,0-1.5-0.7-1.5-1.5l0,0
C181.9,3.8,182.6,3.2,183.4,3.2z"/>
<path class="st0" d="M188.5,3.2h8.5c0.9,0,1.5,0.7,1.5,1.5l0,0c0,0.8-0.7,1.5-1.5,1.5h-8.5c-0.9,0-1.5-0.7-1.5-1.5l0,0
C186.9,3.8,187.6,3.2,188.5,3.2z"/>
<path class="st0" d="M183.4,8.2L183.4,8.2c0.8,0,1.5,0.7,1.5,1.5l0,0c0,0.8-0.7,1.5-1.5,1.5l0,0c-0.8,0-1.5-0.7-1.5-1.5l0,0
C181.9,8.8,182.6,8.2,183.4,8.2z"/>
<path class="st0" d="M188.5,8.2h8.5c0.9,0,1.5,0.7,1.5,1.5l0,0c0,0.8-0.7,1.5-1.5,1.5h-8.5c-0.9,0-1.5-0.7-1.5-1.5l0,0
C186.9,8.8,187.6,8.2,188.5,8.2z"/>
<path class="st0" d="M183.4,13.2L183.4,13.2c0.8,0,1.5,0.7,1.5,1.5l0,0c0,0.8-0.7,1.5-1.5,1.5l0,0c-0.8,0-1.5-0.7-1.5-1.5l0,0
C181.9,13.8,182.6,13.2,183.4,13.2z"/>
<path class="st0" d="M188.5,13.2h8.5c0.9,0,1.5,0.7,1.5,1.5l0,0c0,0.8-0.7,1.5-1.5,1.5h-8.5c-0.9,0-1.5-0.7-1.5-1.5l0,0
C186.9,13.8,187.6,13.2,188.5,13.2z"/>
</g>
</svg>
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* using a variety of technologies (pure JavaScript, Flash, iframe) * using a variety of technologies (pure JavaScript, Flash, iframe)
* *
* Copyright 2010-2017, John Dyer (http://j.hn/) * Copyright 2010-2017, John Dyer (http://j.hn/)
* Maintained by, Rafael Miranda (rafa8626@gmail.com)
* License: MIT * License: MIT
* *
*/(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 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){
...@@ -355,7 +356,6 @@ var DailyMotionIframeRenderer = { ...@@ -355,7 +356,6 @@ var DailyMotionIframeRenderer = {
DailyMotionApi.enqueueIframe(dmSettings); DailyMotionApi.enqueueIframe(dmSettings);
dm.hide = function () { dm.hide = function () {
dm.stopInterval();
dm.pause(); dm.pause();
if (dmIframe) { if (dmIframe) {
dmIframe.style.display = 'none'; dmIframe.style.display = 'none';
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
* using a variety of technologies (pure JavaScript, Flash, iframe) * using a variety of technologies (pure JavaScript, Flash, iframe)
* *
* Copyright 2010-2017, John Dyer (http://j.hn/) * Copyright 2010-2017, John Dyer (http://j.hn/)
* Maintained by, Rafael Miranda (rafa8626@gmail.com)
* License: MIT * License: MIT
* *
*/ */
!function e(t,n,a){function i(s,o){if(!n[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=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,a)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<a.length;s++)i(a[s]);return i}({1:[function(e,t,n){"use strict";var a={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(e){a.isLoaded?a.createIframe(e):(a.loadIframeApi(),a.iframeQueue.push(e))},loadIframeApi:function(){a.isSDKStarted||(mejs.Utils.loadScript("https://api.dmcdn.net/all.js"),a.isSDKStarted=!0)},apiReady:function(){for(a.isLoaded=!0,a.isSDKLoaded=!0;a.iframeQueue.length>0;){var e=a.iframeQueue.pop();DM.init({apiKey:e.apiKey,status:e.status,cookie:e.cookie}),a.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,n){var i={},r=[],s=void 0,o=null,d=null;i.options=t,i.id=e.id+"_"+t.prefix,i.mediaElement=e;for(var u=mejs.html5media.properties,l=0,c=u.length;l<c;l++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);i["get"+n]=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 o.muted;case"buffered":var n=o.bufferedTime,a=o.duration;return{start:function(){return 0},end:function(){return n/a},length:1};case"src":return e.originalNode.getAttribute("src");case"readyState":return 4}return null}return null},i["set"+n]=function(n){if(null!==o)switch(t){case"src":var s="string"==typeof n?n:n[0].src;o.load(a.getDailyMotionId(s));break;case"currentTime":o.seek(n);break;case"muted":o.setMuted(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"volume":o.setVolume(n),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:n})}}(u[l]);for(var m=mejs.html5media.methods,p=0,v=m.length;p<v;p++)!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})}}(m[p]);window["__ready__"+i.id]=function(t){if(e.dmPlayer=o=t,r.length)for(var n=0,a=r.length;n<a;n++){var u=r[n];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=function(t){var n=mejs.Utils.createEvent(t.type,i);e.dispatchEvent(n)},p=0,v=(s=["mouseover","mouseout"]).length;p<v;p++)d.addEventListener(s[p],m,!1);e.originalNode.muted&&(o.setMuted(!0),o.setVolume(0)),s=mejs.html5media.events;for(var f=0,h=(s=s.concat(["click","mouseover","mouseout"])).length;f<h;f++)!function(t){"ended"!==t&&o.addEventListener(t,function(t){var n=mejs.Utils.createEvent(t.type,o);e.dispatchEvent(n)})}(s[f]);o.addEventListener("ad_start",function(){var t=mejs.Utils.createEvent("play",o);e.dispatchEvent(t),t=mejs.Utils.createEvent("progress",o),e.dispatchEvent(t),t=mejs.Utils.createEvent("timeupdate",o),e.dispatchEvent(t)}),o.addEventListener("ad_timeupdate",function(){var t=mejs.Utils.createEvent("timeupdate",o);e.dispatchEvent(t)}),o.addEventListener("ad_pause",function(){var t=mejs.Utils.createEvent("pause",o);e.dispatchEvent(t)}),o.addEventListener("ad_end",function(){var t=mejs.Utils.createEvent("ended",o);e.dispatchEvent(t)}),o.addEventListener("start",function(){e.originalNode.muted&&o.setMuted(!0)}),o.addEventListener("video_start",function(){var t=mejs.Utils.createEvent("play",o);e.dispatchEvent(t)}),o.addEventListener("ad_timeupdate",function(){var t=mejs.Utils.createEvent("timeupdate",o);e.dispatchEvent(t)}),o.addEventListener("video_end",function(){var t=mejs.Utils.createEvent("ended",o);e.dispatchEvent(t),e.originalNode.getAttribute("loop")&&o.play()});for(var y=["rendererready","loadedmetadata","loadeddata","canplay"],g=0,E=y.length;g<E;g++){var j=mejs.Utils.createEvent(y[g],i);e.dispatchEvent(j)}};var f=document.createElement("div");f.id=i.id,e.appendChild(f),e.originalNode&&(f.style.width=e.originalNode.style.width,f.style.height=e.originalNode.style.height),e.originalNode.style.display="none";var h=a.getDailyMotionId(n[0].src),y=Object.assign({id:i.id,container:f,videoId:h},i.options.dailymotion);return e.originalNode.autoplay&&(y.params.autoplay=!0),e.originalNode.muted&&(y.params.mute=!0),a.enqueueIframe(y),i.hide=function(){i.stopInterval(),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(){a.apiReady()},mejs.Renderers.add(i)},{}]},{},[1]); !function e(t,n,a){function i(s,o){if(!n[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=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,a)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<a.length;s++)i(a[s]);return i}({1:[function(e,t,n){"use strict";var a={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(e){a.isLoaded?a.createIframe(e):(a.loadIframeApi(),a.iframeQueue.push(e))},loadIframeApi:function(){a.isSDKStarted||(mejs.Utils.loadScript("https://api.dmcdn.net/all.js"),a.isSDKStarted=!0)},apiReady:function(){for(a.isLoaded=!0,a.isSDKLoaded=!0;a.iframeQueue.length>0;){var e=a.iframeQueue.pop();DM.init({apiKey:e.apiKey,status:e.status,cookie:e.cookie}),a.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,n){var i={},r=[],s=void 0,o=null,d=null;i.options=t,i.id=e.id+"_"+t.prefix,i.mediaElement=e;for(var u=mejs.html5media.properties,l=0,c=u.length;l<c;l++)!function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);i["get"+n]=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 o.muted;case"buffered":var n=o.bufferedTime,a=o.duration;return{start:function(){return 0},end:function(){return n/a},length:1};case"src":return e.originalNode.getAttribute("src");case"readyState":return 4}return null}return null},i["set"+n]=function(n){if(null!==o)switch(t){case"src":var s="string"==typeof n?n:n[0].src;o.load(a.getDailyMotionId(s));break;case"currentTime":o.seek(n);break;case"muted":o.setMuted(n),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"volume":o.setVolume(n),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:n})}}(u[l]);for(var m=mejs.html5media.methods,p=0,v=m.length;p<v;p++)!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})}}(m[p]);window["__ready__"+i.id]=function(t){if(e.dmPlayer=o=t,r.length)for(var n=0,a=r.length;n<a;n++){var u=r[n];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 n=mejs.Utils.createEvent(t.type,i);e.dispatchEvent(n)},!1);e.originalNode.muted&&(o.setMuted(!0),o.setVolume(0)),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 n=mejs.Utils.createEvent(t.type,o);e.dispatchEvent(n)})}(s[v]);o.addEventListener("ad_start",function(){var t=mejs.Utils.createEvent("play",o);e.dispatchEvent(t),t=mejs.Utils.createEvent("progress",o),e.dispatchEvent(t),t=mejs.Utils.createEvent("timeupdate",o),e.dispatchEvent(t)}),o.addEventListener("ad_timeupdate",function(){var t=mejs.Utils.createEvent("timeupdate",o);e.dispatchEvent(t)}),o.addEventListener("ad_pause",function(){var t=mejs.Utils.createEvent("pause",o);e.dispatchEvent(t)}),o.addEventListener("ad_end",function(){var t=mejs.Utils.createEvent("ended",o);e.dispatchEvent(t)}),o.addEventListener("start",function(){e.originalNode.muted&&o.setMuted(!0)}),o.addEventListener("video_start",function(){var t=mejs.Utils.createEvent("play",o);e.dispatchEvent(t)}),o.addEventListener("ad_timeupdate",function(){var t=mejs.Utils.createEvent("timeupdate",o);e.dispatchEvent(t)}),o.addEventListener("video_end",function(){var t=mejs.Utils.createEvent("ended",o);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 f=document.createElement("div");f.id=i.id,e.appendChild(f),e.originalNode&&(f.style.width=e.originalNode.style.width,f.style.height=e.originalNode.style.height),e.originalNode.style.display="none";var h=a.getDailyMotionId(n[0].src),y=Object.assign({id:i.id,container:f,videoId:h},i.options.dailymotion);return e.originalNode.autoplay&&(y.params.autoplay=!0),e.originalNode.muted&&(y.params.mute=!0),a.enqueueIframe(y),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(){a.apiReady()},mejs.Renderers.add(i)},{}]},{},[1]);
\ No newline at end of file \ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* using a variety of technologies (pure JavaScript, Flash, iframe) * using a variety of technologies (pure JavaScript, Flash, iframe)
* *
* Copyright 2010-2017, John Dyer (http://j.hn/) * Copyright 2010-2017, John Dyer (http://j.hn/)
* Maintained by, Rafael Miranda (rafa8626@gmail.com)
* License: MIT * License: MIT
* *
*/(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 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){
...@@ -18,7 +19,7 @@ var FacebookRenderer = { ...@@ -18,7 +19,7 @@ var FacebookRenderer = {
facebook: { facebook: {
appId: '{your-app-id}', appId: '{your-app-id}',
xfbml: true, xfbml: true,
version: 'v2.6' version: 'v2.9'
} }
}, },
...@@ -310,6 +311,7 @@ var FacebookRenderer = { ...@@ -310,6 +311,7 @@ var FacebookRenderer = {
} }
}; };
fbWrapper.destroy = function () {}; fbWrapper.destroy = function () {};
fbWrapper.interval = null; fbWrapper.interval = null;
fbWrapper.startInterval = function () { fbWrapper.startInterval = function () {
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
* using a variety of technologies (pure JavaScript, Flash, iframe) * using a variety of technologies (pure JavaScript, Flash, iframe)
* *
* Copyright 2010-2017, John Dyer (http://j.hn/) * Copyright 2010-2017, John Dyer (http://j.hn/)
* Maintained by, Rafael Miranda (rafa8626@gmail.com)
* License: MIT * License: MIT
* *
*/ */
!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 l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}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={name:"facebook",options:{prefix:"facebook",facebook:{appId:"{your-app-id}",xfbml:!0,version:"v2.6"}},canPlayType:function(e){return~["video/facebook","video/x-facebook"].indexOf(e.toLowerCase())},create:function(e,t,n){function r(t){for(var n=0,r=t.length;n<r;n++){var a=mejs.Utils.createEvent(t[n],i);e.dispatchEvent(a)}}function a(t,n){l=t,(v=document.createElement("div")).id=i.id,v.className="fb-video",v.setAttribute("data-href",t),v.setAttribute("data-allowfullscreen","true"),v.setAttribute("data-controls","false"),e.originalNode.parentNode.insertBefore(v,e.originalNode),e.originalNode.style.display="none",window.fbAsyncInit=function(){FB.init(n),FB.Event.subscribe("xfbml.ready",function(t){if("video"===t.type){p=t.instance;var n=v.getElementsByTagName("iframe")[0],a=n.offsetWidth,l=n.offsetHeight,m=["mouseover","mouseout"],g=function(t){var n=mejs.Utils.createEvent(t.type,i);e.dispatchEvent(n)};i.setSize(a,l),u&&p.play();for(var h=0,y=m.length;h<y;h++)n.addEventListener(m[h],g,!1);for(var b=["startedPlaying","paused","finishedPlaying","startedBuffering","finishedBuffering"],E=0,k=b.length;E<k;E++){var N=b[E],j=o[N];void 0===j||null===j||mejs.Utils.isObjectEmpty(j)||"function"!=typeof j.removeListener||j.removeListener(N)}if(s.length)for(var w=0,U=s.length;w<U;w++){var x=s[w];if("set"===x.type){var B=x.propName,I=""+B.substring(0,1).toUpperCase()+B.substring(1);i["set"+I](x.value)}else"call"===x.type&&i[x.methodName]()}r(["rendererready","loadeddata","canplay","progress","loadedmetadata","timeupdate"]);var P=void 0;o.startedPlaying=p.subscribe("startedPlaying",function(){d||(d=!0),c=!1,f=!1,r(["play","playing","timeupdate"]),P=setInterval(function(){p.getCurrentPosition(),r(["timeupdate"])},250)}),o.paused=p.subscribe("paused",function(){c=!0,f=!1,r(["pause"])}),o.finishedPlaying=p.subscribe("finishedPlaying",function(){c=!0,f=!0,r(["ended"]),clearInterval(P),P=null}),o.startedBuffering=p.subscribe("startedBuffering",function(){r(["progress","timeupdate"])}),o.finishedBuffering=p.subscribe("finishedBuffering",function(){r(["progress","timeupdate"])})}})},mejs.Utils.loadScript("https://connect.facebook.net/en_US/sdk.js")}var i={},s=[],o={},u=e.originalNode.autoplay,l="",c=!0,f=!1,d=!1,p=null,v=null;t=Object.assign(t,e.options),i.options=t,i.id=e.id+"_"+t.prefix,i.mediaElement=e;for(var m=mejs.html5media.properties,g=0,h=m.length;g<h;g++)!function(n){var r=""+n.substring(0,1).toUpperCase()+n.substring(1);i["get"+r]=function(){if(null!==p){switch(n){case"currentTime":return p.getCurrentPosition();case"duration":return p.getDuration();case"volume":return p.getVolume();case"paused":return c;case"ended":return f;case"muted":return p.isMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return l;case"readyState":return 4}return null}return null},i["set"+r]=function(r){if(null!==p)switch(n){case"src":var o="string"==typeof r?r:r[0].src;v.remove(),a(o,t.facebook),FB.XFBML.parse(),u&&p.play();break;case"currentTime":p.seek(r);break;case"muted":r?p.mute():p.unmute(),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"volume":p.setVolume(r),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"readyState":var l=mejs.Utils.createEvent("canplay",i);e.dispatchEvent(l)}else s.push({type:"set",propName:n,value:r})}}(m[g]);for(var y=mejs.html5media.methods,b=0,E=y.length;b<E;b++)!function(e){i[e]=function(){if(null!==p)switch(e){case"play":return p.play();case"pause":return p.pause();case"load":return null}else s.push({type:"call",methodName:e})}}(y[b]);return n.length>0&&a(n[0].src,i.options.facebook),i.hide=function(){i.stopInterval(),i.pause(),v&&(v.style.display="none")},i.show=function(){v&&(v.style.display="")},i.setSize=function(e,t){null===p||isNaN(e)||isNaN(t)||(v.style.width=e,v.style.height=t)},i.destroy=function(){},i.interval=null,i.startInterval=function(){i.interval=setInterval(function(){var t=mejs.Utils.createEvent("timeupdate",i);e.dispatchEvent(t)},250)},i.stopInterval=function(){i.interval&&clearInterval(i.interval)},i}};mejs.Utils.typeChecks.push(function(e){return~e.toLowerCase().indexOf("//www.facebook")?"video/x-facebook":null}),mejs.Renderers.add(r)},{}]},{},[1]); !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 l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}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={name:"facebook",options:{prefix:"facebook",facebook:{appId:"{your-app-id}",xfbml:!0,version:"v2.9"}},canPlayType:function(e){return~["video/facebook","video/x-facebook"].indexOf(e.toLowerCase())},create:function(e,t,n){function r(t){for(var n=0,r=t.length;n<r;n++){var a=mejs.Utils.createEvent(t[n],i);e.dispatchEvent(a)}}function a(t,n){l=t,(v=document.createElement("div")).id=i.id,v.className="fb-video",v.setAttribute("data-href",t),v.setAttribute("data-allowfullscreen","true"),v.setAttribute("data-controls","false"),e.originalNode.parentNode.insertBefore(v,e.originalNode),e.originalNode.style.display="none",window.fbAsyncInit=function(){FB.init(n),FB.Event.subscribe("xfbml.ready",function(t){if("video"===t.type){p=t.instance;var n=v.getElementsByTagName("iframe")[0],a=n.offsetWidth,l=n.offsetHeight,m=["mouseover","mouseout"];i.setSize(a,l),u&&p.play();for(var g=0,h=m.length;g<h;g++)n.addEventListener(m[g],function(t){var n=mejs.Utils.createEvent(t.type,i);e.dispatchEvent(n)},!1);for(var y=["startedPlaying","paused","finishedPlaying","startedBuffering","finishedBuffering"],b=0,E=y.length;b<E;b++){var k=y[b],N=o[k];void 0===N||null===N||mejs.Utils.isObjectEmpty(N)||"function"!=typeof N.removeListener||N.removeListener(k)}if(s.length)for(var j=0,w=s.length;j<w;j++){var U=s[j];if("set"===U.type){var x=U.propName,B=""+x.substring(0,1).toUpperCase()+x.substring(1);i["set"+B](U.value)}else"call"===U.type&&i[U.methodName]()}r(["rendererready","loadeddata","canplay","progress","loadedmetadata","timeupdate"]);var I=void 0;o.startedPlaying=p.subscribe("startedPlaying",function(){d||(d=!0),c=!1,f=!1,r(["play","playing","timeupdate"]),I=setInterval(function(){p.getCurrentPosition(),r(["timeupdate"])},250)}),o.paused=p.subscribe("paused",function(){c=!0,f=!1,r(["pause"])}),o.finishedPlaying=p.subscribe("finishedPlaying",function(){c=!0,f=!0,r(["ended"]),clearInterval(I),I=null}),o.startedBuffering=p.subscribe("startedBuffering",function(){r(["progress","timeupdate"])}),o.finishedBuffering=p.subscribe("finishedBuffering",function(){r(["progress","timeupdate"])})}})},mejs.Utils.loadScript("https://connect.facebook.net/en_US/sdk.js")}var i={},s=[],o={},u=e.originalNode.autoplay,l="",c=!0,f=!1,d=!1,p=null,v=null;t=Object.assign(t,e.options),i.options=t,i.id=e.id+"_"+t.prefix,i.mediaElement=e;for(var m=mejs.html5media.properties,g=0,h=m.length;g<h;g++)!function(n){var r=""+n.substring(0,1).toUpperCase()+n.substring(1);i["get"+r]=function(){if(null!==p){switch(n){case"currentTime":return p.getCurrentPosition();case"duration":return p.getDuration();case"volume":return p.getVolume();case"paused":return c;case"ended":return f;case"muted":return p.isMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return l;case"readyState":return 4}return null}return null},i["set"+r]=function(r){if(null!==p)switch(n){case"src":var o="string"==typeof r?r:r[0].src;v.remove(),a(o,t.facebook),FB.XFBML.parse(),u&&p.play();break;case"currentTime":p.seek(r);break;case"muted":r?p.mute():p.unmute(),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"volume":p.setVolume(r),setTimeout(function(){var t=mejs.Utils.createEvent("volumechange",i);e.dispatchEvent(t)},50);break;case"readyState":var l=mejs.Utils.createEvent("canplay",i);e.dispatchEvent(l)}else s.push({type:"set",propName:n,value:r})}}(m[g]);for(var y=mejs.html5media.methods,b=0,E=y.length;b<E;b++)!function(e){i[e]=function(){if(null!==p)switch(e){case"play":return p.play();case"pause":return p.pause();case"load":return null}else s.push({type:"call",methodName:e})}}(y[b]);return n.length>0&&a(n[0].src,i.options.facebook),i.hide=function(){i.stopInterval(),i.pause(),v&&(v.style.display="none")},i.show=function(){v&&(v.style.display="")},i.setSize=function(e,t){null===p||isNaN(e)||isNaN(t)||(v.style.width=e,v.style.height=t)},i.destroy=function(){},i.interval=null,i.startInterval=function(){i.interval=setInterval(function(){var t=mejs.Utils.createEvent("timeupdate",i);e.dispatchEvent(t)},250)},i.stopInterval=function(){i.interval&&clearInterval(i.interval)},i}};mejs.Utils.typeChecks.push(function(e){return~e.toLowerCase().indexOf("//www.facebook")?"video/x-facebook":null}),mejs.Renderers.add(r)},{}]},{},[1]);
\ No newline at end of file \ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* using a variety of technologies (pure JavaScript, Flash, iframe) * using a variety of technologies (pure JavaScript, Flash, iframe)
* *
* Copyright 2010-2017, John Dyer (http://j.hn/) * Copyright 2010-2017, John Dyer (http://j.hn/)
* Maintained by, Rafael Miranda (rafa8626@gmail.com)
* License: MIT * License: MIT
* *
*/(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 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){
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* using a variety of technologies (pure JavaScript, Flash, iframe) * using a variety of technologies (pure JavaScript, Flash, iframe)
* *
* Copyright 2010-2017, John Dyer (http://j.hn/) * Copyright 2010-2017, John Dyer (http://j.hn/)
* Maintained by, Rafael Miranda (rafa8626@gmail.com)
* License: MIT * License: MIT
* *
*/ */
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter