Chrome HTML5 maximized video full tab not fullscreen
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.
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
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 over 12 yearsIt's almost certainly Chrome-specific behavior.
-
Admin over 12 yearsThat's what I thought, yea.
-
dlamblin over 12 yearsYou'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 over 12 yearsI will not write an application with HTML5 videos. I just want the explained behaviour in Chrome.
-
-
Admin over 12 yearsThat 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 over 12 yearsJust tested and it's unfortunately not working. The behaviour stays the same.
-
Admin over 12 yearsAs 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 over 12 yearsI actually just tested with the Chrome Developer Tools inserting that snippet of JavaScript. Tried on a random YouTube HTML5 video.
-
vadipp over 12 yearsI also think that it's not quite the stackoverflow kind of question.
-
vadipp over 12 years@tbuehlmann Yes.
-
dlamblin over 12 years@tbuehlmann adding the snippet doesn't override what happens to the click handler YouTube already has in place.