Heads Up: iframe code users

Sycamorre's picture
Hey guys, something that needs to be addressed real quick: to those of you are using iframe codes for youtube players, if you're not using the right link for your video, the web page may try to force download a randomly generated .swf file (something that has to do with adobe flash, nothing important). This is happening on both desktop and mobile browsers. It's more annoying than anything else, but it also makes your player unusable (it won't load properly). It has to do with youtube changing their embed links. The file looks something like this when it tries to download:



To run through an example of how to fix it, here's what a bad code would look like:

<iframe width="25" height="25" src="http://www.youtube.com/v/VIDEO_ID?version=2&showinfo=0" frameborder="0" allowfullscreen></iframe>

All that needs to be done is to change the source (src) link in the code to the EMBED link. Here's how it would look fixed:

<iframe width="25" height="25" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>

Notice that the "?version=2&showinfo=0" was taken out, and the "/v/" was changed to "/embed/". I believe the most important part is changing the v to embed. If you really want to play it safe, though, you can go back to the original video and get the embed link from there to bring back to your own code.

This is mostly an issue affecting older posts, but it's still something to be aware of if you use youtube players. Let me know if there's any confusion.

&hearts; thank you

♥ thank you

Sig: Aihnna