i was developing java application using libVLC
all working fine in normal window, but i have problem in xfullscreen ..
here's the code :
Code: Select all
mediaPlayerComponent = new EmbeddedMediaPlayerComponent() {
@Override
protected FullScreenStrategy onGetFullScreenStrategy() {
return new XFullScreenStrategy(frame);
}
};
frame.setContentPane(mediaPlayerComponent);
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Unable to load library 'X11': JNA native support (win32-amd64/X11.dll) not found in resource path (C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\jna-3.5.2.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\platform-3.5.2.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\vlcj-2.4.1-javadoc.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\vlcj-2.4.1-sources.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\vlcj-2.4.1-test-sources.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\vlcj-2.4.1-tests.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.4.1\vlcj-2.4.1.jar;C:\Users\SUBZ\Documents\API Java\vlcj-2.3.1-sources.jar\vlcj.jar;C:\Users\SUBZ\Documents\JavaFX\Tutorial1A\build\classes)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:220)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:322)
at com.sun.jna.Library$Handler.<init>(Library.java:142)
at com.sun.jna.Native.loadLibrary(Native.java:387)
at com.sun.jna.Native.loadLibrary(Native.java:366)
at com.sun.jna.platform.unix.X11.<clinit>(X11.java:363)
at uk.co.caprica.vlcj.runtime.x.LibXUtil.setFullScreenWindow(LibXUtil.java:108)
at uk.co.caprica.vlcj.player.embedded.x.XFullScreenStrategy.enterFullScreenMode(XFullScreenStrategy.java:66)
at uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer.setFullScreen(DefaultEmbeddedMediaPlayer.java:182)
at fullscreen.XFullScreenPlayerTest.start(XFullScreenPlayerTest.java:87)
at fullscreen.XFullScreenPlayerTest$1.run(XFullScreenPlayerTest.java:61)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
libdvdread: Could not open input: Permission denied
libdvdnav: Using dvdnav version 4.2.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open C:\Users\SUBZ\Documents\JavaFX\Tutorial1A for reading
libdvdread: Device C:\Users\SUBZ\Documents\JavaFX\Tutorial1A inaccessible, CSS authentication not available.
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
please help me ..