]> git.sesse.net Git - vlc/blobdiff - bindings/cil/tests/testvlc.cs
Start rewriting the CIL bindings
[vlc] / bindings / cil / tests / testvlc.cs
index d8683035f14b4499135b07c108582442da469ec2..b0d1c11feae4651d9b6bd411bd57f247985243ef 100644 (file)
@@ -31,28 +31,20 @@ namespace VideoLAN.LibVLC.Test
         public static int Main (string[] args)
         {
             string[] argv = new string[]{
-                "-vvv", "-I", "dummy", "--plugin-path=../../modules"
+                "-v", "-I", "dummy", "--plugin-path=../../modules"
             };
 
-            Instance vlc = VLC.CreateInstance (argv);
-            MediaDescriptor md = vlc.CreateDescriptor ("/dev/null");
-            md.Dispose ();
+            Console.WriteLine("Running on VLC {0} ({1})", VLC.Version,
+                            VLC.ChangeSet);
+            Console.WriteLine("Compiled with {0}", VLC.Compiler);
 
-            PlaylistItem item = null;
+            VLC vlc = new VLC (argv);
+            Media m = new Media (vlc, "/dev/null");
 
-            foreach (string s in args)
-                item = vlc.Add (s);
+            vlc.AddInterface ("qt4");
+            vlc.Run ();
 
-            vlc.Loop = false;
-            vlc.TogglePause ();
-            Console.ReadLine ();
-            vlc.Stop ();
-
-            if (item != null)
-                vlc.Delete (item);
-            vlc.Clear ();
-
-            Console.ReadLine ();
+            m.Dispose ();
             vlc.Dispose ();
             return 0;
         }