Plugin de vídeos em tela cheia

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 curtidas

Conforme FEATURE: Whitelist the `allowfullscreen` iframe attribute (#8086) · discourse/discourse@d93586c · GitHub, o atributo allowfullscreen do iframe não é mais removido, então os botões de tela cheia devem aparecer conforme o esperado:

Observe que você ainda precisará adicionar o domínio de origem desses iframes à configuração do site allowed iframes. Não deverá ser necessário usar este plugin no futuro, mas agradecemos a @joebuhlig por criá-lo :raised_hands:

6 curtidas