Multimedia Macro

Displays videos, animations and more, sourced from a file attached to a Confluence page and displayed on your page. See Embedding Multimedia Content for more information. 

Code examples

The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page. 

Macro name: multimedia

Macro body: None.

Parameter name

Required

Default

Parameter description and accepted values

page

No

Current page

Name of the page to which the multimedia file is attached.

space

No

Current space

Space key of the page that has the multimedia file attached.

name

Yes

None

File name of the multimedia file, which is attached to a Confluence page.

width

No

If 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.

height

No

If 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.

autostart

No

false

If 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.

Storage format example

<ac:structured-macro ac:name="multimedia">
  <ac:parameter ac:name="width">500</ac:parameter>
  <ac:parameter ac:name="name">
    <ri:attachment ri:filename="Ninjas.MOV"/>
  </ac:parameter>
</ac:structured-macro>

Wikimarkup example

{multimedia:space=DOC|page=My macros|name=ninjas.swf|autostart=true}

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport