If your Umbraco instance is v7 then the config file should be located in the "config" folder in the root of your project. If you're using v8 then this config no longer exists. Many configs have been removed so I think you should have a look at using an "embed provider", which has been documented here https://our.umbraco.com/documentation/extending/Embedded-Media-Provider/
Callum Whyte made a good article for Skrift about some of the differences between Umbraco 7 and 8, which might be nice for you to read if you're on v8 https://skrift.io/issues/who-moved-my-cheese/ :-)
I'm trying to implement this, and I'm getting the error "Could not embed media - please ensure the URL is valid". Anyone try to do the same thing but get that result and figure out how to correctly use it?
Responsive Video using built in embed
Im using the fitvids javascript to make embedded videos responsive.
Is there a simple way to wrap a video from the built in embedder in a div, so i can target it with fitvids?
Either in embeddedmedia.config or tinyMceConfig.config?
Don't think so. But you can create your own oEmbed provider that wraps the output in a div.
Here is the source code for the default video embed : https://github.com/umbraco/Umbraco-CMS/blob/7.2.1/src/Umbraco.Web/Media/EmbedProviders/OEmbedVideo.cs
Just wrap the output in a div. Don't forget to update the embeddedmedia.config
dave
Well, i have the bad excuse of being a front ender, so im going for a client side solution.
Seems to work fine
I found this while googling so I will add the backend code.
Create a class in your project:
Change the config:
You might have to change the setting for all video providers
Where's that config file? Its been a while since I've needed to do this
Hi Richard
If your Umbraco instance is v7 then the config file should be located in the "config" folder in the root of your project. If you're using v8 then this config no longer exists. Many configs have been removed so I think you should have a look at using an "embed provider", which has been documented here https://our.umbraco.com/documentation/extending/Embedded-Media-Provider/
Callum Whyte made a good article for Skrift about some of the differences between Umbraco 7 and 8, which might be nice for you to read if you're on v8 https://skrift.io/issues/who-moved-my-cheese/ :-)
Hope this helps!
Its actually Umbraco 8 so that's why I couldn't find the config file! Thanks for the link :)
I'm trying to implement this, and I'm getting the error "Could not embed media - please ensure the URL is valid". Anyone try to do the same thing but get that result and figure out how to correctly use it?
I'm using 7.6.3.
Thanks!
It sounds like your youtube video URL didn't pass the validation that is defined in the urlSchemeRegex.
is working on a reply...