As of 4.10 of Umbraco it's been made really easy to insert stuff like youtube videoes using the rich text editor, since a bunch of the nice community members fixed a bug that caused the "embed third party media" button not to work as expected. But it's been fixed now - So now you should be able to simply copy the url of the video and paste it into the dialogue and have it inserted.
However if you're running an earlier version of Umbraco you could easily create a macro with the parameters "width", "height" and "src" in order to make it possible to insert the iframe using Razor yourself.
Hope this helps - looking forward to hearing more from you.
I tried to add Umbraco version earlier, but it kept returning error.
I use Umbraco 4.9.
The problem is that I want to automate it, e.g. I want to creat one node for one video, and one page that displays all videos, which must be done programmatically.
How can I embed YouTube video into Umbraco
I want to embed my videos hosted on YouTube, and be able to change width and height of videos, probably more, ideally using Razor.
Could anyone please suggest on this?
Thanks!
Hi Pingpong
What version of Umbraco are you using?
As of 4.10 of Umbraco it's been made really easy to insert stuff like youtube videoes using the rich text editor, since a bunch of the nice community members fixed a bug that caused the "embed third party media" button not to work as expected. But it's been fixed now - So now you should be able to simply copy the url of the video and paste it into the dialogue and have it inserted.
However if you're running an earlier version of Umbraco you could easily create a macro with the parameters "width", "height" and "src" in order to make it possible to insert the iframe using Razor yourself.
Hope this helps - looking forward to hearing more from you.
/Jan
I tried to add Umbraco version earlier, but it kept returning error.
I use Umbraco 4.9.
The problem is that I want to automate it, e.g. I want to creat one node for one video, and one page that displays all videos, which must be done programmatically.
You could try using this package: http://our.umbraco.org/projects/website-utilities/insert-video-youtube,-vimeo
Correct me if I am wrong. The package is free, but the API key for Embed.ly is not.
Sorry wrong package: http://our.umbraco.org/projects/website-utilities/oembed-macro-easy-embed-youtube,-flickr,-vimeo-etc (Did a quick search and didn't check the results properly)
is working on a reply...