Commit 181b5884 authored by Philippe Morin's avatar Philippe Morin

Update snapshot method.

parent 18eea45e
......@@ -24,7 +24,7 @@ public final class Video implements VideoIntf {
private native boolean _getFullscreen();
private native int _getHeight();
private native int _getWidth();
private native void _getSnapshot(String filename);
private native void _getSnapshot(String filename,int width,int height);
private native void _destroyVideo();
private native void _reparent(JVLCCanvas component);
private native void _setSize(int width, int height);
......@@ -47,8 +47,8 @@ public final class Video implements VideoIntf {
/* (non-Javadoc)
* @see org.videolan.jvlc.VideoIntf#getSnapshot(java.lang.String)
*/
public void getSnapshot(String filepath) throws VLCException {
_getSnapshot( filepath );
public void getSnapshot(String filepath,int width,int height) throws VLCException {
_getSnapshot( filepath , width, height);
}
/* (non-Javadoc)
......
......@@ -58,7 +58,7 @@ public interface VideoIntf {
* If you only give a path, not including the filename, the snapshot will be saved in
* the specified path using vlc naming conventions.
*/
void getSnapshot(String filepath) throws VLCException;
void getSnapshot(String filepath,int width,int height) throws VLCException;
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment