]> git.sesse.net Git - vlc/blobdiff - bindings/java/VLCExample.java
Update snapshot method.
[vlc] / bindings / java / VLCExample.java
index da85cec2406eade83b40d539804e146db379d8c2..46481172db4326380fb9bd67f59a4ab9a1361baa 100644 (file)
@@ -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.");
                                }
             });