65

Currently, this site embeds YouTube videos as Flash. (see an example: How to unlock the achievements related to hidden areas in Portal 2?)

However, this is not the best solution, as now YouTube also supports HTML5, and some users (like me!) prefer to use HTML5 player instead of Flash. Supposedly, it should also work on devices that don't have Flash player (I can't confirm because I don't have one).

The solution seems quite simple: just change the embed code to an iframe, as described at A New Way To Embed YouTube Videos


EDIT: YouTube Embedded Players and Player Parameters says:

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

4
  • 1
    Is the HTML5 player now used?
    – Jon
    Feb 17, 2015 at 2:50
  • @Chipperyman: Nope, not yet. Still using the embedded flash player. Tested by opening that link on both desktop and mobile Chrome. Feb 18, 2015 at 0:14
  • Surprisingly this has never been answered...
    – DJSpud
    Mar 3, 2015 at 21:42
  • Guess that when it breaks, this can be retagged as bug and maybe have better chance of getting official attention. Feature requests are in the very bottom of the team's radar/list. Mar 11, 2015 at 13:29

2 Answers 2

11

This is finally done. Quoting myself from here,

All Stack Exchange sites that have either YouTube or SoundCloud embedding enabled now use the respective IFRAME embeds. In light of recent flash-related happenings, we have also re-rendered all affected posts, which means that even old questions and answers that contain an embedded video will now use the HTML5 player.

Bye bye, Flash.

4
  • I see the preview does not "onebox" the links, is this by design? Jul 15, 2015 at 11:30
  • Sort of, yes. It has never done it. The major problem is that the preview updates with every keystroke, which means the embed would be included anew multiple times a second, which is annoying and may also cause issues when YouTube isn't happy with you making so many requests in such a short time.
    – balpha StaffMod
    Jul 15, 2015 at 11:33
  • Fair enough, though maybe it's better to think of some alternative... people love seeing in advance how their post is going to look like. :) Jul 15, 2015 at 11:36
  • Thank you so much for the improvement! This makes browsing on SE app more convenient! (comparing to the big empty space, since Flash is not supported on most mobile apps) Jul 15, 2015 at 12:32
1

This question was never answered and I also noticed the lack of support for the HTML 5 player. I know this isn't a but it's been 3 years.

Here is a userscript on openuserjs.org that enables this functionality by using the Youtube iframe API to replace the standard embed tags with iframes.

2
  • 2
    Although that's a great workaround, it still does not solve the issue for browsers without user-scripts support (like most/all mobile browsers). Mar 5, 2015 at 0:47
  • @DenilsonSá yeah... Sorry.
    – DJSpud
    Mar 5, 2015 at 15:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .