Exemplo n.º 1
0
 private static IVideoSource MakeLocalDesktopVideoSource(VideoSourceDescription description)
 {
     DesktopVideoSource videoSource = new DesktopVideoSource(Convert.ToInt32(description.SourceString));
       videoSource.FrameInterval = description.FrameInterval;
       videoSource.ResizeWidth = description.Resolution.Width;
       videoSource.ResizeHeight = description.Resolution.Height;
       return videoSource;
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            LogFactory.Assign(new ConsoleLogFactory());

              server.Start();
              Logger.Debug("StreamingServer is running...");

              DesktopVideoSource source = new DesktopVideoSource(0);
              source.FrameInterval = 50;
              source.IsResized = true;
              source.ResizeWidth = 600;
              source.ResizeHeight = 450;
              source.NewFrame += new NewFrameEventHandler(OnNewFrame);
              source.Start();
              Logger.Debug("VideoSource is running...");

              Console.ReadLine();
        }