Opened 2 years ago
Last modified 2 years ago
#57076 new enhancement
Allow fullscreen in oembed videos
Reported by: |
|
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.