Is there a way to play a video fullscreen using the HTML5 <video>
tag?
And if this is not possible, does anybody know if there is a reason for this decision?
Is there a way to play a video fullscreen using the HTML5 <video>
tag?
And if this is not possible, does anybody know if there is a reason for this decision?
An alternative solution would be to have to browser simply provide this option on the contextual menu. No need to have Javascript to do this, though I could see when it would be useful.
In the mean time an alternative solution would simply be to maximise the window (Javascript can provide screen dimensions) and then maximise the video within it. Give it a go and then simply see if the results are acceptable to your users.
As of Chrome 11.0.686.0 dev channel Chrome now has fullscreen video.
Yes. Well what happens with HTML5 video is that you just put the
<video>
tag and the browser will give it's own UI, and thus the ability for full screen viewing. It really makes life much better on us users to not have to see the "art" some developer playing with Flash could make :) It also adds consistency to the platform, which is nice.This needs to be called on the video tag element, for example, to fullscreen the first video tag on the page use:
Notice: this is outdated answer and no longer relevant.
From CSS
it's simple, all the problems can be solved like this,
1) have escape always take you out of fullscreen mode (this doesn't apply to manually entering fullscreen through f11)
2) temporarily display a small banner saying fullscreen video mode is entered (by the browser)
3) block fullscreen action by default, just like has been done for pop-ups and local database in html5 and location api and etc, etc.
i don't see any problems with this design. anyone think i missed anything?