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.
Add an HTML macro to the required page.
Select HTML embed code from the Data source drop-down in the Data source tab.
Enter an HTML
<video>
tag in the given code block.Save the changes and Publish the page.
There are three supported video formats in HTML: MP4, WebM, and OGG. So, 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.
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 this https://samplelib.com/lib/preview/mp4/sample-5s.mp4 video in the macro. This video is available publicly online.
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 in the macro editor. Read the Configuration page for more information about profiles.
Result
Using the sample video and the process mentioned above, the following content is rendered: