Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#57076 new enhancement

Allow fullscreen in oembed videos

Reported by: booteille's profile booteille Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Embeds Keywords:
Focuses: Cc:

Description

Hi!

We're trying to enable fullscreen from a video loaded through oembed (and not by copying directly the iframe) from PeerTube.
Here is the link to the video: https://video.davduf.net/w/4V6DMLcQDGQHnZ9wf6h4KH
And to the oembed: https://video.davduf.net/services/oembed/?url=https://video.davduf.net/w/4V6DMLcQDGQHnZ9wf6h4KH

I tried to understand why it was not working and found this piece of code: https://github.com/WordPress/WordPress/blob/82f3535083c0d8859bd3b8333fe006394978c09e/wp-includes/embed.php#L926

I guess it's because allowed attributes do not include allowfullscreen but I am not confident enough with WP code to be sure it's bound to this part.

Anyway, would it be possible to allow the allowfullscreen attribute in iframe loaded through oembed?

Thanks.

Change History (1)

#1 @johnbillion
17 months ago

  • Version 6.1 deleted
Note: See TracTickets for help on using tickets.