]> git.sesse.net Git - mlt/blob - src/swig/csharp/play.cs
Let Movit effects supply their own fingerprint.
[mlt] / src / swig / csharp / play.cs
1 using System;
2 using System.Threading;
3 using Mlt;
4
5 public class Play {
6         public static void Main(String[] args) {
7                 Console.WriteLine("Welcome to MLT.");
8                 Factory.init();
9                 Profile profile = new Profile("");
10                 Producer p = new Producer(profile, args[0], null);
11                 if (p.is_valid()) {
12                         Consumer c = new Consumer(profile, "sdl", null);
13                         c.set("rescale", "none");
14                         c.connect(p);
15                         c.start();
16                         while (!c.is_stopped())
17                                 Thread.Sleep(300);
18                         c.stop();
19                 }
20         }
21 }