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.