LiveJob job = new LiveJob(); job.AddDeviceSource(null,null); job.OutputFormat.VideoProfile.FrameRate = 15; job.OutputFormat.VideoProfile.Size = new Size(320,240); fileOut = new FileArchivePublishFormat(); fileOut.OutputFileName = String.Format(textBox1.Text+"{0:yyyyMMddhhmmss}.wmv", DateTime.Now); job.PublishFormats.Add(fileOut); deviceSource = job.AddDeviceSource(video, audio); deviceSource.PreviewWindow = new PreviewWindow(new HandleRef(panel1, panel1.Handle)); job.ActivateSource(deviceSource); job.StartEncoding();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)