Embedding YouTube videos

SumnerH

Malt Liquor Picker
Dope
SoSH Member
Jul 18, 2005
32,000
Alexandria, VA
I just made a couple of fixes to youtube embedding:

1. Embedding https links (rather than plain http) was broken; fixed.
2. Embedding mobile links (m.youtube.com, rather than youtube.com or www.youtube.com) was broken; fixed.

Hopefully this fixes most people's issues with embedding youtube videos; if you have problems, post a link here to the post where things aren't working properly and I'll try to fix them.
 

RingoOSU

okie misanthrope
SoSH Member
Jun 2, 2005
16,168
Jerry Adair's home state
I can't see youtube videos in any thread, posted by me, or anyone else since yesterday. I'm on a work PC with an outdated version of flash and firefox that I can't update, but they all worked before, and work on the youtube site.
 
I get "This video is currently unavailable" when I try to play embeds.
 

phrenile

Well-Known Member
Lifetime Member
SoSH Member
Aug 4, 2005
13,892
Looks like a bad wrapper.

This:
Code:
<iframe class="EmbeddedVideo" id="ytplayer" type="text/html" width="640" height="390" src="https://youtube.com/embed/?html5=1&fs=1" frameborder="0" allowfullscreen webkitallowfullscreen /></iframe>
should be this:
Code:
<iframe class="EmbeddedVideo" id="ytplayer" type="text/html" width="640" height="390" src="https://youtube.com/embed/XrdPIE6frdg" frameborder="0" allowfullscreen webkitallowfullscreen /></iframe>
 

SumnerH

Malt Liquor Picker
Dope
SoSH Member
Jul 18, 2005
32,000
Alexandria, VA
phrenile said:
Looks like a bad wrapper.

This:

<iframe class="EmbeddedVideo" id="ytplayer" type="text/html" width="640" height="390" src="https://youtube.com/embed/?html5=1&fs=1" frameborder="0" allowfullscreen webkitallowfullscreen /></iframe>
should be this:
Code:
<iframe class="EmbeddedVideo" id="ytplayer" type="text/html" width="640" height="390" src="https://youtube.com/embed/XrdPIE6frdg" frameborder="0" allowfullscreen webkitallowfullscreen /></iframe>
Whoops, I broke it when I added support for https and mobile (m.youtube.com) sites.
 
Should be fixed now, sorry about that.
 

Al Zarilla

Member
SoSH Member
Dec 8, 2005
59,268
San Andreas Fault
http://www.youtube.com/watch?v=suhGDF6TvY0
 
Test using paste as plain text, but I never saw before the huge break on Ue's last pitch (at 1:34). My God.
 

phrenile

Well-Known Member
Lifetime Member
SoSH Member
Aug 4, 2005
13,892
If you click on the options icon at the far right of the toolbar, you can turn on "Paste as plain text by default".