How to embed videos with HTML macro

This article shows how you can embed videos from a remote location in your Confluence page.

For our scenario, let’s refer to a publicly available video.

  1. Add an HTML macro to the required page.

  2. Select HTML embed code from the Data source drop-down in the Data source tab.

  3. Enter an HTML <video> tag in the given code block for this scenario. You can also use the <object> tag.

  4. Save the changes and Publish the page.

  • There are three supported video formats in HTML: MP4, WebM, and OGG. Thus, you must ensure that when using the HTML <video> tag, the video must be in one of the listed formats so that the video can be shown.

  • If the video is not visible at all, verify the video source and resolve any permission issues.

  • If the video is not visible in its entirety, enter the required width and height in the tag’s parameter.

Relevant information

  • This page uses an HTML macro to display the sample video. You can edit this page and check out the macro for details.

  • We are going to refer to the video available online at https://www.w3schools.com/tags/movie.mp4 for this tutorial.

  • To refer to a video available in private locations, it is recommended to use profiles. Administrators must provide the base location during profile creation and users can then enter the relative URL of the video in the macro editor. Read the Configuration page for more information about profiles.

Result

An HTML macro is being used to render the video below. To know how this works, edit this page and feel free to play with the macro.

Using the sample video and the process mentioned above, the following content is rendered:

 

 


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.

Unable to render {include} The included page could not be found.