Opened 9 years ago
Closed 5 years ago
#37552 closed enhancement (wontfix)
Youtube Oembed ignores parameter(s)
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5.3 |
Component: | Embeds | Keywords: | |
Focuses: | Cc: |
Description
Parameters (such as rel=0) don't propagate to rendered HTML.
I expect a youtube URL such as
https://www.youtube.com/watch?v=6RZkmGYednU&rel=0
in the content do render a video with related video display disabled. However, it displays related videos since rel=0 does not propagate.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hey there,
Thanks for your report and welcome to Trac!
YouTube seems to support the
rel
parameter in the resulting iframe, but ignores it at the oEmbed endpoint for some reason. So that's a YouTube issue. There are plenty of other parameters YouTube ignores with oEmbed (iv_load_policy
,showinfo
,vq
, etc.).We would have to manually parse the URL and change the embed code to include those, which is hacky at best (the embed code can change any day). Thus, I would say this is plugin territory. Here's one plugin you can try: https://wordpress.org/plugins/hide-youtube-related-videos/
Related: #31920, although there YouTube supports the
t
parameter.