Legacy Knowledge Base
公開されました Jul. 2, 2025

フラグメントで追加した動画が、最初のページロードで自動再生されない

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.

問題

  • 以下のように構成されたコンテンツページ(外部URLまたはドキュメントライブラリURL)上のVideo URLフラグメントを通じて追加された動画です:
    • ミュート:false
    • Autoplay: true
  • 最初のページロード時や未認証のユーザーで自動再生されない。
  • 一度ページとインタラクション(ログインやクリックなど)すると、動画が再生されます。

Environment

  • Liferay DXP 7.4、7.3、7.2。

解決策

  • これは、一部のウェブブラウザの自動再生に関する厳格なポリシーによるものです。ほとんどのウェブブラウザは、デフォルトでこのような動作をするように設定されています。
  • このデフォルトの設定は、ほとんどの場合、変更することができます。例えば、。
  • ブラウザの設定変更を伴わない回避策として、 ミュート 、ブラウザが自動再生機能を許可するようにすることができます。 例えば、Chromeの場合:
      • Chromeの自動再生のポリシーはシンプルです:

        • ミュートされた自動再生は常に許可されています。
        • {...}
    • ですから、フラグメントの構成は次のようにする必要があります:
      • Muted: true
      • オートプレイ:true

Did this article resolve your issue ?

Legacy Knowledge Base