Detect click on HTML5 video fullscreen button

Comments 0

Beware This post is more than 3 years old, it may be outdated or incorrect! Please check elsewhere for accurate information!

I've been working on an app in Node-Webkit that plays video using the WebKit HTML5 video player. I wanted Fullscreen support, but sadly Node-Webkit doesn't support the official HTML5 Fullscreen API and instead uses a custom API.

I made a script that you can see below that detects if the click was made on the fullscreen button and calls the appropriate function that you define.

Please note that this only works on the WebKit HTML5 video player found only in Chrome, Chromium, Opera, Node-Webkit and similar Chrome-flavoured WebKit/Blink based browsers.


Comments (0)

Please be civil when commenting. Think before writing, don't spam, self promote, bully, harass or harm anyone. Please read the Comment Policy before posting. Comments are moderated.

There are no comments.
Be the first to contribute!

Scroll to top