Legacy Knowledge Base
Published Jul. 2, 2025

Video added in fragment not autoplaying on first page load

Written By

Cristina Rodriguez

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • A video added through the Video URL fragment on a content page (external URL or Document Library URL) configured as follows:
    • Muted: false
    • Autoplay: true
  • Is not autoplaying on first page load/with unauthenticated users.
  • Once you interact with the page (by logging in or clicking on the video), the video will reproduce.

Environment

  • Liferay DXP 7.4, 7.3, 7.2.

Resolution

  • This is due to some web browsers autoplay strict policies: most of them are configured by default to behave like this.
  • This default configuration can in most cases be changed, for example:
  • A workaround that does not imply changing browsers' configuration would be to mute your video, so that browsers allow the autoplay feature. For example, in Chrome:
      • Chrome's autoplay policies are simple:

        • Muted autoplay is always allowed.
        • {...}
    • So your fragment configuration must look like this:
      • Muted: true
      • Autoplay: true

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base