Search code examples
javavideoappletvlcvlcj

how to prevent "vlcj video output" window


I am developing an applet to view camera. But when I run applet a 'vlcj video output' window pops up. Is it possible to remove this window? I tried many times but I could not succeed.

enter image description here


Solution

  • Video survace is shown in a JPanel in my applet. But before displaying i create a background task to download VLC dlls as zip and extract them to a temporary folder. When task is done execution of program jumps to main thread and video surface is added to JPanel. Then this. problem is occuring. I create a new task that runs on downloader task's completion. This new task do nothing and when it is done execution continues in main thread. This way this problem is gone.