I have seen several premium WordPress themes providing extra shortcodes for embedding Youtube and Vimeo videos. Most of the theme authors do not know that this function is already present in WordPress core. This function is powered by oEmbed.
Using oEmbed you can avoid the process of copying and pasting HTML from the site hosting your videos i.e. Youtube, Vimeo etc. You can read more about WordPress implementation of oEmbed here.
How to embed Youtube videos using oEmbed shortcode
An example usage of the shortcode: [embed]type-your-youtube-video-url-here[/embed]
You can also specify the width and height of your video.
An example usage of the shortcode using width and heigh attributes: [embed width=”300″ heigh=”300″]type-your-youtube-video-url-here[/embed]
You can also use oEmbed shortcode with the following websites:
- Google Video