]> git.sesse.net Git - vlc/blobdiff - bindings/java/samples/client/src/main/java/VlcClient.java
jvlc: accept cmdline args for sample client
[vlc] / bindings / java / samples / client / src / main / java / VlcClient.java
index a1b6692db10b49b10c1ece82b56693956b8230b7..f139fb7b8f0b0e577abd548f2629f0ef4ba5d7de 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Created on 28-feb-2006
  *
- * $Id: AudioIntf.java 8 2006-02-28 12:03:47Z little $
+ * $Id: $
  *
  * This program is free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public License
@@ -42,12 +42,12 @@ class VLCPlayerFrame extends Frame
 
     public Canvas jvcanvas;
 
-    public VLCPlayerFrame()
+    public VLCPlayerFrame(String[] args)
     {
-        initComponents();
+        initComponents(args);
     }
 
-    private void initComponents()
+    private void initComponents(String[] args)
     {
 
         java.awt.GridBagConstraints gridBagConstraints;
@@ -63,7 +63,7 @@ class VLCPlayerFrame extends Frame
         jvcanvas.setSize(200, 200);
         jvcc.add(jvcanvas);
         
-        jvlc = new JVLC();
+        jvlc = new JVLC(args);
         
         playlist = new Playlist(jvlc);
 
@@ -215,7 +215,7 @@ public class VlcClient
 
     public static void main(String[] args)
     {
-        Frame f = new VLCPlayerFrame();
+        Frame f = new VLCPlayerFrame(args);
         f.setBounds(0, 0, 500, 500);
         f.addWindowListener(new WindowAdapter()
         {