legacy-knowledge-base
公開されました Jun. 30, 2025

ビデオ・フラグメントはYouTube以外のサイトもサポートしていますか?

written-by

Rita Schaff

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

learn-legacy-article-disclaimer-text

問題

  • 外部ビデオの読み込みをサポートする、すぐに使える2つのフラグメントがある:
    • 外部動画
    • 動画URL
  • 現時点では、YouTubeなどいくつかのサイトのみがサポートされている。
  • dailymotionなど他のサイトはいつ対応するのか?

環境

  • DXP 7.4

解像度

  • しかし、これらのフラグメントが何をしているのか調べてみたところ、どうやらオリジナルのYouTubeプレーヤーを iframe.

    Dailymotionの動画ページで見た限りでは、共有ボタンはこのHTMLを生成する:
    <div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;">
    <iframe style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden" frameborder="0" type="text/html" src="https://www.dailymotion.com/embed/video/x8m4skj?autoplay=1" width="100%" height="100%" allowfullscreen title="Dailymotion Video Player" allow="autoplay">
    </iframe>
    </div>
    フラグメントでテストしたところ、期待通りに機能した。 つまり、これを生成するために既存のフラグメントを作成するか、修正する限り、使用することができる。
  • これを実装するための機能リクエストも公開されています:
    LPS-154773 マルチメディアやビデオを簡単に公開できるようにする

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base