Änderungen von Dokument Confluence bridge for Multimedia
Zuletzt geändert von xwikiadmin am 2025/05/21 10:12
Von Version 4.1
bearbeitet von xwikiadmin
am 2025/05/21 10:12
am 2025/05/21 10:12
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.26.19]
Auf Version 1.1
bearbeitet von xwikiadmin
am 2024/06/24 15:22
am 2024/06/24 15:22
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.19.4]
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
-
Objekte (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -1,6 +1,6 @@ 1 1 = Description = 2 2 3 -This is a bridge for the Confluence Multimedia macro. It uses the Video.jsopen-source embeddable media player for web sites, supporting many commonly-used audio and video formats.3 +This is a bridge for the Confluence Multimedia macro. It uses the [[JW Player>>https://www.jwplayer.com/]] open-source embeddable media player for web sites, supporting many commonly-used audio and video formats. 4 4 5 5 = Parameters = 6 6
- XWiki.WikiMacroClass[0]
-
- Makro-Code
-
... ... @@ -5,13 +5,16 @@ 5 5 #set ($attachment = $wikimacro.parameters.get('name')) 6 6 #end 7 7 #if ($attachment) 8 - #set ($page = $services. rendering.escape($wikimacro.parameters.get('page'), $xwiki.currentContentSyntaxId))8 + #set ($page = $services.model.resolveDocument($wikimacro.parameters.get('page'))) 9 9 #set ($width = $services.rendering.escape($wikimacro.parameters.get('width'), $xwiki.currentContentSyntaxId)) 10 10 #set ($height = $services.rendering.escape($wikimacro.parameters.get('height'), $xwiki.currentContentSyntaxId)) 11 - #set ($attachment = $services.rendering.escape($attachment, $xwiki.currentContentSyntaxId)) 12 - ## Embed does not yet support autoplay. 13 13 #set ($autostart = "$!wikimacro.parameters.get('autostart').toLowerCase()" == 'true') 14 - {{embed attachment="$!attachment" width="$!width" height="$!height" reference="$!page" /}} 12 + #if ("$!page" != '') 13 + #set ($attachRef = $services.model.createAttachmentReference($page, $attachment)) 14 + #set ($attachment = $services.model.serialize($attachRef, 'local')) 15 + #end 16 + {{jwplayer attachment="${services.rendering.escape($attachment, $xwiki.currentContentSyntaxId)}" width="$!{width}" 17 + height="$!{height}" autostart="$!{autostart}" /}} 15 15 #else 16 16 Please provide the filename of the media to play in the name parameter. 17 17 #end