VideoComponent flickering repaint on resizable DocumentWindow

Hi all. I’m trying to avoid flickering when resize occures.
I’m using VideoComponent added in a resizable DocumentWindow component.

I attach a video sample.
Trying to understand how to solve. Any ideas?

Solved using OS nativeTitleBar. With OS nativeTitleBar flickering disappear.

I added a Timer callback to check if a click on MaximizeButton occures, using isFullScreen() (maximiseButtonPressed doesn’t work in os native mode).
On fullscreen I switch to false nativeTitleBar to hide top bar, using setTitleBarHeight(0), for a real full screen.