Comment 0 for bug 1207140

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote : YouTube filter requires updates

1. The iframe embed code for YouTube videos does not have the protocol included anymore thus causing problems when trying to embed the code into a site.

The code reads:
<iframe width="560" height="315" src="//www.youtube.com/embed/XXXXX?rel=0" frameborder="0" allowfullscreen></iframe>

YouTube says:

''Just using //: instead of http:// or https:// means that you would like to use whichever protocol the parent page is using.

So a page called http://example.com with include http://youtube.com
and a page called https://example.com with include https://youtube.com

It's intentional.''

https://groups.google.com/a/googleproductforums.com/d/msgid/youtube/bce484af-b2e6-4f6e-9bc0-6c7617e08406%40googleproductforums.com

2. When someone wants to use the YouTube URL from a mobile device, it is shortened to youtu.be. However, these videos can't be embedded because the filter doesn't understand that URL.