[wp-trac] [WordPress Trac] #57076: Allow fullscreen in oembed videos

WordPress Trac noreply at wordpress.org
Fri Nov 11 15:27:50 UTC 2022


#57076: Allow fullscreen in oembed videos
-------------------------+-----------------------------
 Reporter:  booteille    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Embeds       |    Version:  6.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57076>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list