java - VLCJ fullScreen Error Unable to load library 'X11': JNA native support (win32-x86/X11.dll) -
java - VLCJ fullScreen Error Unable to load library 'X11': JNA native support (win32-x86/X11.dll) -
i'm doing java based media-player have problem showing video in total screen.
when utilize components.getmediaplayer().setfullscreen(true);
next error:
exception in thread "javafx application thread" java.lang.unsatisfiedlinkerror: unable load library 'x11': jna native back upwards (win32-x86/x11.dll) not found in resource path
i utilize jvm 32bit, jna 3.5.2 , vlcj 3.0.1.
from have seen loading 32bit libraries os 64bit. problem?
it looks trying load x11 library in windows.
that not going work.
vlcj uses x11 native library on linux switch java jframe full-screen.
on windows, vlcj provides different native solution using win32 api.
so on windows can when create media player:
mediaplayercomponent = new embeddedmediaplayercomponent() { @override protected fullscreenstrategy ongetfullscreenstrategy() { homecoming new win32fullscreenstrategy(frame); } };
on linux utilize this:
mediaplayercomponent = new embeddedmediaplayercomponent() { @override protected fullscreenstrategy ongetfullscreenstrategy() { homecoming new xfullscreenstrategy(frame); } };
of course of study if want back upwards either/or, can create conditional check @ runtime, like:
mediaplayercomponent = new embeddedmediaplayercomponent() { @override protected fullscreenstrategy ongetfullscreenstrategy() { if (runtimeutil.iswindows()) { homecoming new win32fullscreenstrategy(frame); } else { homecoming new xfullscreenstrategy(frame); } } };
why full-screen functionality implemented way?
it because full-screen functionality using core java unreliable - on windows versions may full-screen apart task bar example, , on linux window managers may not work @ all.
to reply question 32-bit dll vs 64-bit os: matters here whether jvm architecture 32-bit, i.e. jvm architecture must match architecture of shared libraries trying load.
java media-player vlcj
Comments
Post a Comment