Plugin für Vollbildvideos

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.

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 „Gefällt mir“

Laut FEATURE: Whitelist the `allowfullscreen` iframe attribute (#8086) · discourse/discourse@d93586c · GitHub wird das Iframe-Attribut allowfullscreen nicht mehr entfernt, sodass Vollbild-Buttons wie erwartet angezeigt werden sollten:

Beachten Sie, dass Sie die Quelldomain dieser Iframes weiterhin in die Site-Einstellung „Zugelassene Iframes“ aufnehmen müssen. In Zukunft sollte dieses Plugin nicht mehr erforderlich sein, aber vielen Dank an @joebuhlig dafür, dass er es erstellt hat :raised_hands:

6 „Gefällt mir“