X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fjava%2FVLCExample.java;h=46481172db4326380fb9bd67f59a4ab9a1361baa;hb=fbe32b9932cde4de355591dcf16eafa3cb761097;hp=da85cec2406eade83b40d539804e146db379d8c2;hpb=12c291f038deb29afafc050b67b81df6786fc2b9;p=vlc diff --git a/bindings/java/VLCExample.java b/bindings/java/VLCExample.java index da85cec240..46481172db 100644 --- a/bindings/java/VLCExample.java +++ b/bindings/java/VLCExample.java @@ -1,7 +1,7 @@ import org.videolan.jvlc.AudioIntf; import org.videolan.jvlc.JVLC; import org.videolan.jvlc.VLCException; -import org.videolan.jvlc.VolumeListener; +import org.videolan.jvlc.listener.VolumeListener; public class VLCExample @@ -77,7 +77,7 @@ public class VLCExample System.out.println("real size."); jvlc.video.setFullscreen(false); System.out.print("Taking snapshot... "); - jvlc.video.getSnapshot(System.getProperty("user.dir") + "/snap.png"); + jvlc.video.getSnapshot(System.getProperty("user.dir") + "/snap.png",0,0); System.out.println("taken. (see " + System.getProperty("user.dir") + "/snap.png )"); Thread.sleep(2000); System.out.println("Resizing to 300x300"); @@ -87,7 +87,7 @@ public class VLCExample jvlc.audio.addVolumeListener(new VolumeListener() { public void volumeChanged() { - System.out.println("====> From the listener: volume changed"); + System.out.println("====> From the listener: volume changed."); } });