Adding default parameters to embedded YouTube videos
We just tried a feature we've seldom used in Umbraco. When going with the embed grid editor (possibly also prop editor), a YouTube movie is embedded with width, height and the URL set.
However, we needed to add rel=0 to the querystring to avoid getting the "more like this" screen at the end of the video.
Adding it to the URL while embedding did nothing. (It was stripped)
After digging around a bit in the code, we discovered the EmbeddedMedia.config file (only used Umbraco 6 years, can't know every file).
Seemed to me that adding rel=0 as a key value to the youtube provider would have the provider add it to the final URL. But it didn't.
Is there any option to do this? We ended up just adding the HTML to an RTE, but would be really nice to just configure default YouTube behavior.
EmbeddedMedia.config seemed like such a good place to put it. :)
Adding default parameters to embedded YouTube videos
We just tried a feature we've seldom used in Umbraco. When going with the embed grid editor (possibly also prop editor), a YouTube movie is embedded with width, height and the URL set.
However, we needed to add rel=0 to the querystring to avoid getting the "more like this" screen at the end of the video. Adding it to the URL while embedding did nothing. (It was stripped)
After digging around a bit in the code, we discovered the EmbeddedMedia.config file (only used Umbraco 6 years, can't know every file). Seemed to me that adding rel=0 as a key value to the youtube provider would have the provider add it to the final URL. But it didn't.
Is there any option to do this? We ended up just adding the HTML to an RTE, but would be really nice to just configure default YouTube behavior.
EmbeddedMedia.config seemed like such a good place to put it. :)
I need to add rel=0 parameter to embedded Youtube video. Any progress?
How are other people adding the
rel=0
onto the generated code?Seems essentials as most customers don't want other brands videos being displayed on their sites! :-)
I'm going to have a play around with:
https://github.com/umbraco/Umbraco-CMS/blob/5397f2c53acbdeb0805e1fe39fda938f571d295a/src/Umbraco.Web/Media/EmbedProviders/OEmbedVideo.cs
And see if I can get support for the additional parameters.
is working on a reply...