Code source wiki de Confluence bridge for Multimedia
Modifié par Admin le 16/10/2025 - 23:33
Afficher les derniers auteurs
| author | version | line-number | content |
|---|---|---|---|
| 1 | = Description = | ||
| 2 | |||
| 3 | This is a bridge for the Confluence Multimedia macro. It uses the Video.js 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.|No| | ||
| 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 | {{confluence_multimedia page="Confluence.Macros.ConfluenceMultimedia" name="file_example.mp4" width="500" height="200" /}} | ||
| 20 | {{/code}} | ||
| 21 | |||
| 22 | The result is the following: | ||
| 23 | |||
| 24 | {{confluence_multimedia page="Confluence.Macros.ConfluenceMultimedia" name="file_example.mp4" width="500" height="200" /}} | ||
| 25 | |||
| 26 | == Audio == | ||
| 27 | |||
| 28 | {{code}} | ||
| 29 | {{confluence_multimedia page="Confluence.Macros.ConfluenceMultimedia" name="file_example.mp3" height="30"/}} | ||
| 30 | {{/code}} | ||
| 31 | |||
| 32 | The result is the following: | ||
| 33 | |||
| 34 | {{confluence_multimedia page="Confluence.Macros.ConfluenceMultimedia" name="file_example.mp3" height="30"/}} |