Changeset 108322 in spip-zone


Ignore:
Timestamp:
Jan 3, 2018, 3:31:39 PM (18 months ago)
Author:
cedric@…
Message:

Report de r108321 : Suite de r108317 : pas de mejsplayer sur video non plus, et aussi on evite que le script mejs-init de doublle initialise un audio ou un video avec cette classe

Location:
_core_/plugins/medias
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias

  • _core_/plugins/medias/javascript/mejs-init.js

    r108320 r108322  
    1818                        if (!(L.gs===true)) return;
    1919                        (function ($){
    20                                 jQuery("audio.mejs,video.mejs").not('.done').each(function (){
     20                                jQuery("audio.mejs,video.mejs").not('.done,.mejs__player').each(function (){
    2121                                        var me = jQuery(this).addClass('done');
    2222                                        var id;
  • _core_/plugins/medias/javascript/mejs-init.min.js

    r108320 r108322  
    11var mejsloader;
    2 (function(){var a=mejsloader;"undefined"==typeof a&&(mejsloader=a={gs:null,plug:{},css:{},init:null,c:0,cssload:null});a.init||(a.cssload=function(c){if("undefined"==typeof a.css[c]){a.css[c]=!0;var b=document.createElement("link");b.href=c;b.rel="stylesheet";b.type="text/css";document.getElementsByTagName("head")[0].appendChild(b)}},a.init=function(){!0===a.gs&&function(c){jQuery("audio.mejs,video.mejs").not(".done").each(function(){function b(){var e=!0,h;for(h in d.css)a.cssload(d.css[h]);for(var f in d.plugins)"undefined"==
     2(function(){var a=mejsloader;"undefined"==typeof a&&(mejsloader=a={gs:null,plug:{},css:{},init:null,c:0,cssload:null});a.init||(a.cssload=function(c){if("undefined"==typeof a.css[c]){a.css[c]=!0;var b=document.createElement("link");b.href=c;b.rel="stylesheet";b.type="text/css";document.getElementsByTagName("head")[0].appendChild(b)}},a.init=function(){!0===a.gs&&function(c){jQuery("audio.mejs,video.mejs").not(".done,.mejs__player").each(function(){function b(){var e=!0,h;for(h in d.css)a.cssload(d.css[h]);for(var f in d.plugins)"undefined"==
    33typeof a.plug[f]?(e=!1,a.plug[f]=!1,jQuery.getScript(d.plugins[f],function(){a.plug[f]=!0;b()})):0==a.plug[f]&&(e=!1);e&&jQuery("#"+c).mediaelementplayer(jQuery.extend(d.options,{success:function(a,c){function b(){var b=jQuery(a).closest(".mejs__inner");a.paused?(b.addClass("pausing"),setTimeout(function(){b.filter(".pausing").removeClass("playing").removeClass("pausing").addClass("paused")},100)):b.removeClass("paused").removeClass("pausing").addClass("playing")}b();a.addEventListener("play",b,!1);
    44a.addEventListener("playing",b,!1);a.addEventListener("pause",b,!1);a.addEventListener("paused",b,!1);g.attr("autoplay")&&a.play()}}))}var g=jQuery(this).addClass("done"),c;(c=g.attr("id"))||(c="mejs-"+g.attr("data-id")+"-"+a.c++,g.attr("id",c));var d={options:{},plugins:{},css:[]},e,h;for(e in d)if(h=g.attr("data-mejs"+e))d[e]=jQuery.parseJSON(h);b()})}(jQuery)});a.gs||("undefined"!==typeof mejscss&&a.cssload(mejscss),a.gs=jQuery.getScript(mejspath,function(){a.gs=!0;a.init();jQuery(a.init);onAjaxLoad(a.init)}))})();
  • _core_/plugins/medias/modeles/video.html

    r103754 r108322  
    1212<div class="video-intrinsic-wrapper" style='height:0;width:100%;padding-bottom:[(#GET{hauteur}|div{#GET{largeur}}|mult{100}|round{2})]%;position:relative;'>
    1313        <div class="video-wrapper" style="position: absolute;top:0;left:0;width:100%;height:100%;">
    14                 <video class="mejs mejs__player mejs-#ID_DOCUMENT[ mejs-(#ENV{skin})]"
     14                <video class="mejs mejs-#ID_DOCUMENT[ mejs-(#ENV{skin})]"
    1515                                data-id="[(#VAL{mejs-#ID_DOCUMENT}|concat{#ENV{skin}}|md5)]"
    1616                                data-mejsoptions='{"alwaysShowControls": true,"pluginPath":"[(#CHEMIN{lib/mejs/flashmediaelement.swf}|dirname)/]"[,"loop":(#ENV{loop}|?{true,false})],"videoWidth":"100%","videoHeight":"100%"[,"startVolume":"(#ENV{volume})"]}'
  • _core_/plugins/medias/paquet.xml

    r108320 r108322  
    22        prefix="medias"
    33        categorie="multimedia"
    4         version="2.21.7"
     4        version="2.21.8"
    55        etat="stable"
    66        compatibilite="[3.3.0-dev;3.3.*]"
Note: See TracChangeset for help on using the changeset viewer.