Wiki-Quellcode von Multimedia Macro

Version 2.1 von xwikiadmin am 2022/08/11 16:36

Zeige letzte Bearbeiter
1 = Description =
2
3 The Multimedia macro is a bridge between Confluence and XWiki. 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
5 = Parameters =
6
7 |=Parameter|=Description|=Required|=Default
8 |**page**|The page to which the multimedia file is attached|No|
9 |**name**|File name of the attached multimedia file.|Yes|
10 |**width**|The player width, in pixels. If not defined, the player tries to determine automatically the width from the played media file.|No|
11 |**height**|The player height, in pixels. If not defined, the player tries to determine automatically the height from the played media file.|No|
12 |**autostart**|If the parameter is set to true then the video or audio file will start playing as soon as the page is loaded.|No|false
13
14 = Examples of usage =
15
16 == Video ==
17
18 {{code}}
19 {{multimedia page="Confluence.Macros.Multimedia" name="file_example.mp4" width="500" height="200" /}}
20 {{/code}}
21
22 The result is the following :
23
24 {{multimedia page="Confluence.Macros.Multimedia" name="file_example.mp4" width="500" height="200" /}}
25
26 == Audio ==
27
28 {{code}}
29 {{multimedia page="Confluence.Macros.Multimedia" name="file_example.mp3" height="30"/}}
30 {{/code}}
31
32 The result is the following :
33
34 {{multimedia page="Confluence.Macros.Multimedia" name="file_example.mp3" height="30"/}}