I'm working on a project who involve JavaFX and Omxplayer. On Windows, where I develop, my code works.
I set my stage to
On Windows, there is no problem, I can see behind the stage my other window. But on the Raspberry Pi with JavaFXPort (Gluon), I try the same .jar and opacity and Transparent seem to not work.
I don't use the X11, only in framebuffer.
If I start the Omxplayer before (or after) the JavaFX .jar, I can't see it.
JavaFX is in fullscreen mode on framebuffer, but on Windows it's on 800x600 (like I defined for test purposes).
This is the command I use to launch my .jar
/opt/jdk1.8.0_161/bin/java -Djava.ext.dirs=/root/armv6hf-sdk- corrected/armv6hf-sdk/rt/lib/ext/ -Dcom.sun.javafx.experimental.embedded.3d=true -Dprism.verbose=true - Dmonocle.screen.fb=/dev/fb0 -Dprism.forceGPU=true -Dprism.order=es2,sw,j2d -Dsun.java2d.opengl=true -Xms300m -Xmx400m -jar /root/PlayerOmx.jar
And for Omxplayer, it's simple :
omxplayer --win "1920 1080 0 0" /root/movie.mp4 --loop
I already tried with -Dcom.sun.javafx.transparentFramebuffer
Can you help me please ?