Changes for page JW Player

Last modified by Frank Fock on 2025/01/26 23:08

From version 2.1
edited by Frank Fock
on 2025/01/26 23:08
Change comment: Install extension [org.xwiki.contrib:macro-jwplayer-ui/2.2.1]
To version 1.1
edited by Frank Fock
on 2024/02/07 18:16
Change comment: Install extension [org.xwiki.contrib:macro-jwplayer-ui/2.1.10]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -10,8 +10,8 @@
10 10   #set ($attachmentReference = $services.model.resolveAttachment($reference, 'explicit', $doc.documentReference))
11 11   #set ($reference = $xwiki.getAttachmentURL($services.model.serialize($attachmentReference.parent), $attachmentReference.name))
12 12  #end
13 -#set ($width = $numbertool.toNumber($xcontext.macro.params.width).intValue())
14 -#set ($height = $numbertool.toNumber($xcontext.macro.params.height).intValue())
13 +#set ($width = $mathtool.toInteger($xcontext.macro.params.width))
14 +#set ($height = $mathtool.toInteger($xcontext.macro.params.height))
15 15  #set ($autostart = $xcontext.macro.params.autostart == 'true')
16 16  #set ($repeat = $xcontext.macro.params.repeat == 'true')
17 17  #set ($attributes = [
defaultCategory
... ... @@ -1,1 +1,0 @@
1 -Content