Freeola Internet Get Dotted Domains Blog Guides Chat
All .uk domains 99p
Register any UK domain (.uk, .co.uk, .org.uk or .me.uk) for just 99p for 1 year! Offer ends 30th June 2017

Viewing Thread:
'Embedded YouTube videos stopped working - <object> tag'

Tue 16/08/16 at 15:43:
Moderator
"Are you sure?"
Posts: 4,876
*Heads up*
Check your YouTube embedded video code

It looks like around the 11th August 2016 Google finally removed support for the depreciated <object> tag.

I had a call from a client today letting me know his visitors are seeing a black box where the embedded YouTube video should be playing.

They were using IE11 so at first I thought it might be an Internet Explorer issue. Testing in the latest Firefox the video played fine, but Chrome was also found to be broken.

After investigating it looks like Google have finally pulled the plug on the <object> tag. Using their recommended <iframe> code works fine in all browsers - making use of HTML5 rather than FLASH when possible, depending on the device/browser.

YouTube: embedding video
Deprecation Notice
YouTube <object> embeds were deprecated on January 27, 2015. Please migrate your applications to use <iframe> embeds, which can intelligently use whichever embedded player– HTML (<video>) or Flash (<object>) – the client supports.

Along with some websites (mine!) having issues, looking around I can see lots of forums that allow videos to be embedded have been caught out by this.

So time to move to <iframe>!

Hmmm...
There have been no replies to this thread yet.
Tue 16/08/16 at 15:43:
Moderator
"Are you sure?"
Posts: 4,876
*Heads up*
Check your YouTube embedded video code

It looks like around the 11th August 2016 Google finally removed support for the depreciated <object> tag.

I had a call from a client today letting me know his visitors are seeing a black box where the embedded YouTube video should be playing.

They were using IE11 so at first I thought it might be an Internet Explorer issue. Testing in the latest Firefox the video played fine, but Chrome was also found to be broken.

After investigating it looks like Google have finally pulled the plug on the <object> tag. Using their recommended <iframe> code works fine in all browsers - making use of HTML5 rather than FLASH when possible, depending on the device/browser.

YouTube: embedding video
Deprecation Notice
YouTube <object> embeds were deprecated on January 27, 2015. Please migrate your applications to use <iframe> embeds, which can intelligently use whichever embedded player– HTML (<video>) or Flash (<object>) – the client supports.

Along with some websites (mine!) having issues, looking around I can see lots of forums that allow videos to be embedded have been caught out by this.

So time to move to <iframe>!

Hmmm...

Freeola is a UK internet service provider offering the best value and extensive free services. Please compare our domain name registration prices or check out our UK high speed internet access. If you are in business please see examples of our free hosting at Freeola.com/customer-sites.

Safe and Secure Payment