Summary
Details
- jwplayer.js
-
- Size
-
... ... @@ -1,1 +1,1 @@ 1 - 236.0 KB1 +40.6 KB - Content
- jwplayer.flash.swf
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.AdminAngriff - Size
-
... ... @@ -1,0 +1,1 @@ 1 +139.3 KB - Content
- jwplayer.html5.js
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.AdminAngriff - Size
-
... ... @@ -1,0 +1,1 @@ 1 +131.1 KB - Content
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -9,16 +9,19 @@ 9 9 } 10 10 }); 11 11 require(['jQueryNoConflict', 'jwplayer'], function($, jwplayer) { 12 - jwplayer.key="QowE9R/MhMc1H2U6HxMlLTxvbtbk+uhwkexhBQ=="; 13 13 $('.jwplayer').each(function(index) { 14 14 var options = { 15 - file: $(this).attr('data-source'), 16 - autostart: $(this).hasClass('autostart'), 17 - repeat: $(this).hasClass('repeat') 14 + file: this.alt 18 18 }; 19 - var width = $(this).attr('data-width'); 16 + if($(this).hasClass('autostart')){ 17 + options.autostart = true; 18 + } 19 + if($(this).hasClass('repeat')){ 20 + options.repeat = true; 21 + } 22 + var width = $(this).attr('width'); 20 20 width && (options.width = width); 21 - var height = $(this).attr(' data-height');24 + var height = $(this).attr('height'); 22 22 height && (options.height = height); 23 23 this.id = this.id || ('jwplayer' + index); 24 24 jwplayer(this.id).setup(options);
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,1 +1,0 @@ 1 -default - Code
-
... ... @@ -1,3 +1,0 @@ 1 -.jwplayer-wrapper { 2 - margin-bottom: 10px; 3 -} - Content Type
-
... ... @@ -1,1 +1,0 @@ 1 -CSS - Name
-
... ... @@ -1,1 +1,0 @@ 1 -Style - Parse content
-
... ... @@ -1,1 +1,0 @@ 1 -No - Use this extension
-
... ... @@ -1,1 +1,0 @@ 1 -onDemand
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,8 +1,6 @@ 1 1 {{velocity}} 2 -#set ($macroDocFullName = $xcontext.macro.doc.fullName) 3 -#set ($discard = $xwiki.ssx.use($macroDocFullName)) 4 4 #if ($xcontext.action != 'edit') 5 - #set ($discard = $xwiki.jsx.use($macro DocFullName))3 + #set ($discard = $xwiki.jsx.use($xcontext.macro.doc.fullName)) 6 6 #end 7 7 #set ($reference = $xcontext.macro.params.attachment) 8 8 ## Allow the user to pass a path or an absolute URL. ... ... @@ -12,21 +12,7 @@ 12 12 #end 13 13 #set ($width = $mathtool.toInteger($xcontext.macro.params.width)) 14 14 #set ($height = $mathtool.toInteger($xcontext.macro.params.height)) 15 -#set ($autostart = $xcontext.macro.params.autostart == 'true') 16 -#set ($repeat = $xcontext.macro.params.repeat == 'true') 17 -#set ($attributes = [ 18 - "class='jwplayer#if ($autostart) autostart#end#if ($repeat) repeat#end'", 19 - "data-source='$reference'" 20 -]) 21 -#if ($width) 22 - #set ($discard = $attributes.add("data-width='$width'")) 23 -#end 24 -#if ($height) 25 - #set ($discard = $attributes.add("data-height='$height'")) 26 -#end 27 -(% class="jwplayer-wrapper" %)((( 28 - (% $stringtool.join($attributes, ' ') %)((( 29 - Loading the video player... 30 - ))) 31 -))) 13 +#set ($autostart = $xcontext.macro.params.autostart) 14 +#set ($repeat = $xcontext.macro.params.repeat) 15 +[[image:missing.png||class="jwplayer#if ($autostart == 'true') autostart#end#if ($repeat == 'true') repeat#end"#if ($width) width="$width"#end#if ($height) height="$height"#end alt="$reference"]] 32 32 {{/velocity}}