Multimedia Macro
Zuletzt geändert von xwikiadmin am 2025/05/21 09:23
Description
The Multimedia macro is a bridge between Confluence and XWiki. It uses the JW Player open-source embeddable media player for web sites, supporting many commonly-used audio and video formats.
Parameters
| Parameter | Description | Required | Default |
|---|---|---|---|
| page | The page to which the multimedia file is attached | No | |
| name | File name of the attached multimedia file. | Yes | |
| width | The player width, in pixels. If not defined, the player tries to determine automatically the width from the played media file. | No | |
| height | The player height, in pixels. If not defined, the player tries to determine automatically the height from the played media file. | No | |
| 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 |
Examples of usage
Video
{{multimedia page="Confluence.Macros.Multimedia" name="file_example.mp4" width="500" height="200" /}}
The result is the following :
Audio
{{multimedia page="Confluence.Macros.Multimedia" name="file_example.mp3" height="30"/}}
The result is the following :