示例#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;
 }
示例#2
0
文件: Program.cs 项目: sclcwwl/Gimela
        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();
        }