Chrome HTML5 maximized video full tab not fullscreen

19,700

Solution 1

It's very unlikely that it will rollback to the previous behavior since so many developers have been begging for the 'real' fullscreen behavior.

If you want to solve your particular case you can create a bookmarlet or browser extension with something like:

document.body.addEventListener('click', function(e) {
  var target = e.target;
  if (target.nodeName == 'VIDEO') { // or EMBED
    target.style.position = 'absolute';
    target.style.width = '100%';
    target.style.height = '100%';
  }
}, false);

Solution 2

Try the Window Expander extension. It works in both Flash and HTML5 modes.

Share:
19,700

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin over 1 year

    I'm using Google Chrome and a few weeks ago, when I watched a YouTube HTML5 video and pressed the fullscreen button, it maximized the video to the full browsing window ("fullscreen tab"). Then I was able to really make it fullscreen by pressing F11. Since a few days, when pressing the fullscreen button, Chrome maximizes the video to fullscreen directly. Since I often have my browser window aligned to the right site of the screen and still want to see "fullscreen tab" videos, I want the old behaviour back.

    Long story short: I want Chrome to maximize HTML5 videos to full tab size (with possibility to go fullscreen with F11), not fullscreen per se. Sidequestion might be, if that's Chrome specific behaviour or even YouTube's.

    Best regards

    Tobias

    • Michael Aaron Safyan
      Michael Aaron Safyan over 12 years
      It's almost certainly Chrome-specific behavior.
    • Admin
      Admin over 12 years
      That's what I thought, yea.
    • dlamblin
      dlamblin over 12 years
      You're planning on writing an html5 app that plays video? Or are you asking to change a setting on google chrome or youtube (that btw doesn't exist)?
    • Admin
      Admin over 12 years
      I will not write an application with HTML5 videos. I just want the explained behaviour in Chrome.
  • Admin
    Admin over 12 years
    That sounds promising, gonna check it ASAP. Also, it wouldn't be a problem to write a small Greasemonkey-similar script for that case. Thanks so far!
  • Admin
    Admin over 12 years
    Just tested and it's unfortunately not working. The behaviour stays the same.
  • Admin
    Admin over 12 years
    As far as I understand there are no issues with the code I put here but you need to add the logic to overwrite the actions when you click the fullscreen icon. You could also use some key actions to trigger it. Without more code or live samples I can't help you further and nobody will.
  • Admin
    Admin over 12 years
    I actually just tested with the Chrome Developer Tools inserting that snippet of JavaScript. Tried on a random YouTube HTML5 video.
  • vadipp
    vadipp over 12 years
    I also think that it's not quite the stackoverflow kind of question.
  • vadipp
    vadipp over 12 years
    @tbuehlmann Yes.
  • dlamblin
    dlamblin over 12 years
    @tbuehlmann adding the snippet doesn't override what happens to the click handler YouTube already has in place.