Commit 78461b33 authored by Filippo Carone's avatar Filippo Carone

do not catch VLCException in sample

parent 9760d127
...@@ -71,28 +71,21 @@ public class VLCExample ...@@ -71,28 +71,21 @@ public class VLCExample
Thread.sleep(100); Thread.sleep(100);
} }
try Video video = new Video(jvlc);
{ System.out.print(video.getWidth(mediaInstance));
Video video = new Video(jvlc); System.out.print("x");
System.out.print(video.getWidth(mediaInstance)); System.out.println(video.getHeight(mediaInstance));
System.out.print("x"); System.out.print("Fullscreen... ");
System.out.println(video.getHeight(mediaInstance)); video.setFullscreen(mediaInstance, true);
System.out.print("Fullscreen... "); Thread.sleep(3000);
video.setFullscreen(mediaInstance, true); System.out.println("real size.");
Thread.sleep(3000); video.setFullscreen(mediaInstance, false);
System.out.println("real size."); System.out.print("Taking snapshot... ");
video.setFullscreen(mediaInstance, false); video.getSnapshot(mediaInstance, System.getProperty("user.dir") + "/snap.png", 0, 0);
System.out.print("Taking snapshot... "); System.out.println("taken. (see " + System.getProperty("user.dir") + "/snap.png )");
video.getSnapshot(mediaInstance, System.getProperty("user.dir") + "/snap.png", 0, 0); Thread.sleep(2000);
System.out.println("taken. (see " + System.getProperty("user.dir") + "/snap.png )"); System.out.println("Resizing to 300x300");
Thread.sleep(2000); video.setSize(300, 300);
System.out.println("Resizing to 300x300");
video.setSize(300, 300);
}
catch (VLCException e)
{
e.printStackTrace();
}
System.out.print("Muting..."); System.out.print("Muting...");
Audio audio = new Audio(jvlc); Audio audio = new Audio(jvlc);
......
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