the embedding only accepts the following URL format:
http://www.youtube.com/watch?v=XXXXXXXXXXX(or
http://youtube.com/watch?v=XXXXXXXXXXX i.e. "www." prefix is optional)
where 'XXXXXXXXXXX' is the 11-character video ID
Example 1:
- Code: Select all
http://www.youtube.com/watch?v=pRLTqdn52AI&feature=share&list=UUi1xnSTt91UCz8quWW35T_Q
embedding won't work because of the extra parameters in the URL; here is the edited version which works:
- Code: Select all
http://www.youtube.com/watch?v=pRLTqdn52AI
Example 1.1:
sometimes URLs are mixed up differently, e.g.
- Code: Select all
http://www.youtube.com/watch?v=pRLTqdn52AI&feature=share&list=UUi1xnSTt91UCz8quWW35T_Q
could easily have been, for example, this:
- Code: Select all
http://www.youtube.com/watch?list=UUi1xnSTt91UCz8quWW35T_Q&v=pRLTqdn52AI&feature=share
or this:
- Code: Select all
http://www.youtube.com/watch?feature=share&list=UUi1xnSTt91UCz8quWW35T_Q&v=pRLTqdn52AI
the rules for the required URL format remain: it's always the
http://youtube.com domain, followed by "/watch?v=", followed by the video ID (in this case, 'pRLTqdn52AI')
Example 2:
- Code: Select all
http://youtu.be/pRLTqdn52AI
embedding won't work because it is with youtu.be domain
to make those work you can either go to (click) that link, and then when it opens in the browser to play, copy the URL from the address bar, which will have the correct format:
- Code: Select all
http://www.youtube.com/watch?v=pRLTqdn52AI&feature=youtu.be
and then edit out the fluff:
- Code: Select all
http://www.youtube.com/watch?v=pRLTqdn52AI
alternatively, you can just type the "http://youtube.com/watch?v=" part, because it is always the same, and then append the video ID found at the end of the youtu.be URL: 'pRLTqdn52AI'
you may even want to save this pattern somewhere and keep it handy:
- Code: Select all
[youtube]http://www.youtube.com/watch?v=XXXXXXXXXXX[/youtube]
then when you need to embed a link, copy-paste that saved pattern into your post and then just replace the XXXXXXXXXXX part with the 11-character video ID found in the URL, - whether it's a youtu.be URL, or a messy long one from the first example, or whatever
those IDs should be easy enough to find within the URL, as they will
always be surrounded by one or more of '=', '&', or '/' characters