フルスクリーン動画プラグイン

When you embed a video via iframe from Vimeo, Kaltura, or MS Stream, the embed code requires a few html attributes that make it possible to view the videos in full-screen mode. However, those attributes are stripped from the iframe code during the cooking process. This plugin whitelists the attributes required to allow full-screen buttons and capabilities.

I should also note that in order for this to work, you’ll need to add the source domain for these iframes to the allowed iframes site setting. Otherwise, the iframe will be ignored entirely.

https://github.com/procourse/discourse-full-screen-videos-plugin

Sidenote: This is work that was sponsored by a client who wanted to remain anonymous, but wanted to share their project with the community.

「いいね!」 18

FEATURE: Whitelist the `allowfullscreen` iframe attribute (#8086) · discourse/discourse@d93586c · GitHub に従い、allowfullscreen iframe 属性はもはや削除されなくなったため、フルスクリーンボタンは期待通りに表示されるはずです:

ただし、これらの iframe のソースドメインを「許可された iframe」サイトの設定に追加する必要があります。今後、このプラグインは不要になる可能性がありますが、@joebuhlig さんのおかげです :raised_hands:

「いいね!」 6