diff --git a/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x64.deb b/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x64.deb index ca1c772..612c404 100644 Binary files a/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x64.deb and b/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x64.deb differ diff --git a/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x86.deb b/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x86.deb index 02da42e..5637d9a 100644 Binary files a/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x86.deb and b/bin/FXWinWrap_v0.0.1/FXWinWrap_0.1-1_x86.deb differ diff --git a/src/debs/FXWinWrap_0.1-1_x64/opt/FXWinWrap/Controller.class b/src/debs/FXWinWrap_0.1-1_x64/opt/FXWinWrap/Controller.class index d1096e4..d24599c 100644 Binary files a/src/debs/FXWinWrap_0.1-1_x64/opt/FXWinWrap/Controller.class and b/src/debs/FXWinWrap_0.1-1_x64/opt/FXWinWrap/Controller.class differ diff --git a/src/debs/FXWinWrap_0.1-1_x86/opt/FXWinWrap/Controller.class b/src/debs/FXWinWrap_0.1-1_x86/opt/FXWinWrap/Controller.class index d1096e4..d24599c 100644 Binary files a/src/debs/FXWinWrap_0.1-1_x86/opt/FXWinWrap/Controller.class and b/src/debs/FXWinWrap_0.1-1_x86/opt/FXWinWrap/Controller.class differ diff --git a/src/v0.0.1/Controller.java b/src/v0.0.1/Controller.java index c98956c..45592b1 100644 --- a/src/v0.0.1/Controller.java +++ b/src/v0.0.1/Controller.java @@ -46,8 +46,11 @@ public class Controller { if (txtField.getText().toLowerCase().contains(".mp4") || txtField.getText().toLowerCase().contains(".mkv") || txtField.getText().toLowerCase().contains(".mpg") || + txtField.getText().toLowerCase().contains(".mpeg") || txtField.getText().toLowerCase().contains(".wmv") || - txtField.getText().toLowerCase().contains(".flv")) { + txtField.getText().toLowerCase().contains(".flv") || + txtField.getText().toLowerCase().contains(".webm") || + txtField.getText().toLowerCase().contains(".avi")) { /* ########## FOR FUTURE PLAYING VIDEO ########## pb = new ProcessBuilder("mplayer", "-slave", "-quiet", "-idle", tmpPath).start(); Media media = new Media(getClass().getResource("test.mp4").toString()); @@ -61,11 +64,13 @@ public class Controller { String movieImg = ffmpg + " -w -t='00:10:00' -c jpg -i " + tmpPath + " -s 800 -o /tmp/image.jpg"; pb = Runtime.getRuntime().exec(movieImg); + pb.waitFor(); imgPath = new Image("file://" + "/tmp/image.jpg"); tmpPath = "/tmp/image.jpg"; } - else + else { imgPath = new Image("file://" + tmpPath); + } imgView.setFitWidth(500); imgView.setFitHeight(375);