Google enforces HTML5 use on YouTube for Firefox

Martin Brinkmann
Jul 17, 2014
Updated • Dec 25, 2014
Firefox, Youtube
|
28

Google Chrome users who are regulars on Google's video hosting platform YouTube have been forced to use the HTML5 player on the website for some time now.

Google provided Chrome users as well as users of other browsers a choice in this regard in the past.

The HTML5 player was opt-in for example which meant that users had to visit the YouTube HTML5 Video Player page to switch from Flash to it if they wanted to use it as the main player on the site.

This option was removed for Chrome users visiting the page, and it has now also been removed for Firefox 33 users who visit it.

What this means is that Google will enforce the use of HTML5 video on YouTube for all Firefox users who use Firefox 33 or newer on their system to do so (Note this means Firefox Nightly currently, but on Tuesday also Firefox Aurora).

Update: Google seems to have delayed the change. Firefox 34 users can switch players right now on the site.

youtube enforce html5

Internet Explorer, Safari or Opera users, and Firefox users who use version 32 or earlier of the browser, are not affected by this yet. They still get the "request the HTML5 player" or "use the default player" button on the HTML5 page on YouTube to switch between Flash video and HTML5 video.

Mozilla did implement support for Media Source Extensions (MSE) and WebM VP9 recently, but the feature is not enabled by default at the time of writing. While it will be enabled in the future, it is necessary to enable it right now in Firefox to make use of it.

If you don't enable the feature, Media Source Extensions is not supported which limits which videos you can play using the HTML5 player.

The main issue for Firefox users is that the browser does not support MSE & H.264 which means that you may run into issues playing some videos on YouTube.

Note: I have no insight into how YouTube handles this. The text "is currently used when possible" suggests that the site will fall back to other playback options, Adobe Flash more or less, when videos cannot be played using HTML5.

So what can you do about it?

If videos play fine on YouTube you do not necessarily have to change anything. If you notice that some videos won't play anymore because of the change, you may want to force YouTube to use the Flash Player instead.

One of the better ways to do so is to fake your user agent so that YouTube detects Firefox 31 when you connect to the site.

  1. Download and install User Agent Switcher or a comparable add-on for the browser.
  2. Load about:addons and click on options next to User Agent Switcher.
  3. Select New > New User Agent and enter FF31 as the description, and Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 as the user agent.
  4. Click ok.

You can switch to that user agent using the Tools menu. Press the Alt-key to display it and switch to the new user agent whenever you are visiting YouTube.

You should not run into (many) compatibility issues doing so, and you may want to keep the user agent registered permanently for the time being if you visit YouTube regularly.

The result is that you can select between the HTML5 video player and the Flash Player on YouTube. (via Sören)

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. H M Omar Faruk said on November 19, 2016 at 10:34 am
    Reply

    my HTML5 player not sappurt plz halp me

  2. trlkly said on December 25, 2014 at 8:24 pm
    Reply

    This is horrible reporting. You even included a screenshot of the page that lets you switch back, but cut it off right before the button that lets you do it.

    All YouTube did was switch to the HTML5 player by default. You can still opt out. I just checked, and the default player will still be Flash.

    1. Martin Brinkmann said on December 25, 2014 at 8:41 pm
      Reply

      No, there is nothing afterwards, no “use the default player” button. I checked in Firefox 34 stable right now and you are right that the controls are there again. But they are not when you use Nightly and probably other dev builds.

      Remember that the article was written when Firefox Nightly was version 33 which is 18 weeks before Firefox Stable hits the same version.

      Google must have postponed the change. I have added an update to the post.

      http://imgur.com/A7gTy2d

      1. trlkly said on December 25, 2014 at 9:08 pm
        Reply

        Then I apologize for the accusation of bad reporting. I should have guessed that Google may have only been experimenting with the change. They do that sort of thing a lot.

        I wonder if they are intentionally only forcing it on the development versions. Google is one of the few places I’ve seen that actually seems to keep up with which version of Firefox is current–they will warn you in Gmail if you are more than 1 version behind.

      2. Martin Brinkmann said on December 25, 2014 at 10:19 pm
        Reply

        I guess it had something to do with issues on YouTube that Firefox users experienced and maybe Mozilla not implementing MSE and such in time.

  3. Zsolt said on November 1, 2014 at 5:20 pm
    Reply

    @Joe
    LOL. How is that relevant to flash on linux?

  4. Hrvoje said on October 23, 2014 at 1:12 pm
    Reply

    except that on linux flash is no more (except in chrome) so no way of playing most of youtube content in FF (I run FF34 and no MP4 support yet)

    1. Zsolt said on October 23, 2014 at 3:15 pm
      Reply

      That’s the price you pay for using an OS with negligible usage share.

      1. Joe said on November 1, 2014 at 4:06 pm
        Reply

        Huge BS.
        VLC and Gstreamer/ugly support H264. This is a patent encumbered codec.
        This is a price you pay for living in Murica.

  5. Peter said on July 31, 2014 at 12:39 am
    Reply

    Thank you for the tip.
    HTML5 player is total crap compared to the YT flash one.

  6. KB-99 said on July 30, 2014 at 3:10 pm
    Reply

    FOR 1080p on FireFox
    about:config
    media.mediasource.enabled > double click to exchange false to TRUE
    check on html5 youtube page and resulting enabled all…
    …for reason of speed and economize CPU, energy compsumption… Flash Player Ever…

  7. marius t said on July 18, 2014 at 8:32 pm
    Reply

    There’s a downside with HTML5,Windows doesn’t detect when the video is playing so the screensaver activates it’s self,you would need a program like caffeine in linux to disable the screensaver!

  8. mtbink.com said on July 18, 2014 at 9:05 am
    Reply

    On my computer, HTML5 video laggy, Flash video smooth :(

    1. Trebuchette said on July 19, 2014 at 7:34 am
      Reply

      It’s that way on MOST computers. Except chromebooks.

  9. Niks said on July 17, 2014 at 7:48 pm
    Reply

    Can we change user agent with web developer tool ?

    1. BalaC said on July 18, 2014 at 6:27 am
      Reply

      There is a way with editing about:config, you need to create “general.useragent.override” (String type) and set it to desired user agent string. Not sure whether this works now in latest version.

  10. ilev said on July 17, 2014 at 7:43 pm
    Reply
    1. Trebuchette said on July 19, 2014 at 7:36 am
      Reply

      Which is why Duck Duck Go is the search engine to use! :)

  11. Niks said on July 17, 2014 at 7:33 pm
    Reply

    Firefox 31 ESR FTW !!!

  12. Andrew said on July 17, 2014 at 6:22 pm
    Reply

    Good step, flash needs to mostly go away

  13. RazielCuts said on July 17, 2014 at 5:12 pm
    Reply

    Bad step from Google, HTML5 does not support 1080p, that’s why I still prefer Flash Player instead.

    1. Zsolt said on July 23, 2014 at 12:54 am
      Reply

      Nope. Firefox doesn’t support technologies to play 1080p youtube videos. You can play it on chrome, opera, IE…

  14. Alex said on July 17, 2014 at 4:08 pm
    Reply

    Great step from google! :D

  15. Oxendine said on July 17, 2014 at 2:46 pm
    Reply

    Another option is to use this addon: https://addons.mozilla.org/ru/firefox/addon/youtube-center/ Among other useful stuff, it can enforce Flash on Youtube. A real blessing.

    1. Joe said on November 1, 2014 at 4:02 pm
      Reply

      “Among other useful stuff, it can enforce Flash on Youtube. A real blessing.”
      Ambulance called, they miss you!

      1. Zsolt said on November 1, 2014 at 5:22 pm
        Reply

        Hey, are you mentally retarded? You can’t play the best quality streams with FF’s HTML5 player…

    2. mma173 said on July 20, 2014 at 9:20 pm
      Reply

      Few days ago, YAYS stopped working. I searched for an alternative and discovered Youtube Center. I recommend it to everyone.

    3. B. Moore said on July 17, 2014 at 8:08 pm
      Reply

      I highly Recommend YTC in any form… userscript/extension don’t matter. Can’t watch Youtube with out it!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.