Changeset 87066 in spip-zone for _core_/plugins/medias/modeles/video.html


Ignore:
Timestamp:
Jan 10, 2015, 10:24:45 AM (5 years ago)
Author:
cedric@…
Message:

Report de js init du plugin player : le css est injecte en async dans un link plutot que inline repete a chaque player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias/modeles/video.html

    r86683 r87066  
    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})"]}'
     17                       data-mejscss='[(#LISTE{#CHEMIN{lib/mejs/mediaelementplayer.min.css}}|json_encode)]'
    1718                       width="100%"
    1819                       height="100%"
     
    3637[<div class='spip_doc_descriptif'>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</div>]
    3738[<script>/*<!\[CDATA\[*/var mejspath = '[(#CHEMIN{lib/mejs/mediaelement-and-player.min.js}|timestamp)]';
    38 (#INCLURE{javascript/mejs_init.js}|compacte{js})/*\]\]>*/</script>]
    39 <style>[(#INCLURE{#CHEMIN{lib/mejs/mediaelementplayer.min.css}|url_absolue_css})].spip_document_video .me-cannotplay {width:100% !important;height:100% !important;}.spip_document_video .me-cannotplay a {display: block;}</style>
     39(#INCLURE{javascript/mejs-init.min.js}|compacte{js})/*\]\]>*/</script>]
     40[(#ENV{skin}|oui)[<style>(#INCLURE{#CHEMIN{css/mejs-skin-#ENV{skin}.css}|sinon{#CHEMIN{lib/mejs/mejs-skins.css}}|url_absolue_css})</style>]]
    4041</div>
    4142</BOUCLE_tous>
Note: See TracChangeset for help on using the changeset viewer.