I am trying to upload an MP4 video file to a Confluence page. When I am in the editor, the video will upload with a preview and the video will play.

However, it refuses to publish the page with the loaded preview. Instead, I have to refresh the page and publish it before the video preview loads. The published page shows a loading screen for the video preview.

Clicking on the preview will not play the video, and the preview never loads. Other viewers are also unable to play the video and see the same preview screen. How can I fix this?