Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Info

If you have an .mp4 or .flv file that uses the H.264 video codec, you can attach the video to any page in the DuraSpace wiki and allow it to be played embedded inside that page, with the help of jwplayer. I've created two custom Confluence macros for this purpose, mp4 and flv.

Example

This wiki markup embeds an mp4 video:

Code Block
{mp4:num=1|width=352|height=240|url=https://wiki.duraspace.org/download/attachments/22546192/example-video.mp4}

The width, height, and url parameters are self-explanatory, but what is the num parameter? It's just a number...any number. It's a little strange, but in order for the macro to work, each embedded video on a single confluence page must have a unique value specified for num.

Here's what it looks like when viewed on a page:

Mp4
num1
width352
urlhttps://wiki.duraspace.org/download/attachments/22546192/example-video.mp4
height240

Note: If you have an flv video, just use flv as the name of the macro instead of mp4.