Recently YouTube developers have came up with a new way to embed YouTube videos, in order to bring mobile compatibility, the only good thing about this new method is that it is simple for novice users, but the bad things are is that it’s not flexible as html object and is not efficient client side neither, yes I have proof below.
Inside the iframe not only that the code is clearly long, it is also clearly relying heavily on JavaScript as well, the issue with JavaScript is that it is a client-side language that can be disabled client-side even on mobile devices as well but I’m pretty sure that Google is already aware of that anyway. The other problem with the iframe is that it currently limited to YouTube. Also iFrame was removed from HTML5 specification.
There are two other method to YouTube iFrame that will also bring mobile compatibility by providing fallback in html object, is not limited to YouTube, does not rely on JavaScript and passes HTML5 specification.
Link and Image as HTML Object Fallback.
The only problem with this method is that it can steal traffic from your site especially with mobile devices such as the iPhone.
HTML5 Video as HTML Object Fallback.
The problem with this method is bandwidth consideration and where to get the sources for HTML5 Video.
Anyway I hope this was an interesting read, have a nice day. =)