Closed zeynepaydin1 closed 5 months ago
See for example https://github.com/search?q=repo%3Acaprica%2Fvlcj+macos+heavyweight&type=issues.
Essentially, contemporary versions of the JDK on macOS do not have a heavyweight AWT toolkit which means you can't use a "normal" media player. So unless you can on a JDK 1.6 JVM, yes 1.6(!), then you can't use the normal video rendering.
You have to use a software rendering media player instead.
In earlier versions of vlcj this is the "direct rendering" media players, in most recent versions of vlcj this requires using a callback video surface, or JavaFX with a custom video surface, with the embedded media player.
Hey everyone, I am working on a Maven Project in Eclipse and we are using vlcj for the frame animations. The UI part of the project was developed on a Windows computer. However, even though there are no Java part errors on my MacBook Pro with M2 chip, the video cannot be displayed and I get a grey screen. Here is the console when I try to run the frame:
Also, here is my code:
I am using VLC Version 3.0.20 Vetinari (Apple Silicon), vlcj 4.8.2, jdk 21.0.1, Eclipse IDE for Java Developers Version: 2023-03 (4.27.0), MacOS Sonoma 14.1.2.
I am a beginner Java developer so feel free to suggest anything to me. I did a lot of research but couldn't solve the problem for days. I really appreciate any help you can provide.