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
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");
jvlc.audio.addVolumeListener(new VolumeListener()
{
public void volumeChanged() {
- System.out.println("====> From the listener: volume changed");
+ System.out.println("====> From the listener: volume changed.");
}
});