Multimedia Macro

Add the Multimedia macro to a page to embed an attached video, animation, or other multimedia file.

The macro uses the HTML5 <video> tag, so the type of video your page viewers can see depends on the video formats their browser supports with the HTML5 <video> tag.

This macro is great for:

  • training videos
  • customer interviews and research recordings
  • workshop or meeting recordings.

On this page:

Screenshot: a meeting notes page containing a demo video.


If you want to display online multimedia content, like YouTube and Vimeo videos, take a look at the Widget Connector Macro.

The file preview also supports MP3 audio and MP4 video files. This is handy when you want to play a video in a larger format.

Add this macro to your page

To add the Multimedia macro to a page:

  1. Upload the file to your page.
  2. From the editor toolbar, choose Insert > Other Macros.
  3. Choose Multimedia from the Media category.
  4. Select the file you want to play.
  5. Choose Insert

You can then publish your page to see the macro in action. 

Screenshot: configuring the Multimedia macro

Change the macro parameters

Macro parameters are used to change the behaviour of a macro.

To change the macro parameters:

  1. In the editor, click the macro placeholder and choose Edit.
  2. Update the parameters as required then choose Insert.

Here's a list of the parameters available in this macro. 

Parameter name

Required

Default

Parameter description and accepted values

Page name (page)NoCurrent pageThe name of the page to which the multimedia file is attached. Start typing the name of the page and then select it from list of suggested pages. Include the spacekey if you want to specify a page in another space (for example, MYSPACE:My Page Title)
File* (name)YesNoneFile name of the attached multimedia file.
WidthNoIf not specified, the browser will determine the width based on the file type.Width of the movie window to be displayed on the page. By default, this value is specified in pixels. You can also choose to specify a percentage of the window's width, or any other value accepted by HTML.
HeightNoIf not specified, the browser will determine the height based on the file type.Height of the movie window to be displayed on the page. By default, this value is specified in pixels. You can also choose to specify a percentage of the window's height, or any other value accepted by HTML.
Autoplay (autostart)NofalseIf the parameter is set to true then the video or audio file will start playing as soon as the page is loaded. If this option is set to false then the file will not play until the user clicks the icon or image on the page.

Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

Other ways to add this macro

Add this macro as you type

Type followed by the start of the macro name, to see a list of macros. 

Add this macro using wiki markup

This is useful when you want to add a macro outside the editor, for example as custom content in the sidebar, header or footer of a space.

Macro name: multimedia

Macro body: None.

{multimedia:space=DOC|page=My macros|name=ninjas.swf|autostart=true}
Last modified on Oct 5, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.