Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 video full screen on mobile browsers (android)

After a huge research I didn't find any answer to my question yet. I wanted to achieve my goal with FullScreenAPI but it is not supported in any mobile browser (except Firefox 19 and Blackberry browser - but I need a cross-browser solution). Here's the source. I also tested FullScreenAPI on native android browser and mobile Chrome with appropriately prefixed fullscreen functions. Each function was of type undefined.

Another approach was the rtsp protocol which is usually handled by an outer player. Here is the guy who assumes that m.youtube.com uses that solution - I think it is not true (maybe the answer is outdated). Youtube uses native video's fullscreen. On mobile Chrome when you tap the play button, the movie instantly goes fullscreen.

Although, every source I googled tells me that native fullscreen is not possible on android browsers, still HTML5 video element with its native controls gives us a fullscreen button which works perfectly out there.

Since I don't want the native controls, can anyone share any ingenious solution to How to trigger HTML5 video fullscreen button'sevent?

like image 575
matewka Avatar asked Mar 05 '13 12:03

matewka


People also ask

Does HTML5 video work on mobile?

HTML5 video is a native element of HTML5 and works out of the box on most modern browsers. HTML5 video for mobile devices is also a native solution provided by the HTML5 mark-up language.


1 Answers

You can make a popup at 100% width/height with a close button on absolute on it playing your HTML5 video.

Old, simple and dirty trick... But works

like image 57
Alex Pereira Avatar answered Sep 29 '22 22:09

Alex Pereira