Skip to main content

Console/service applications

Products: Video Capture SDK .Net

Video rendering can be disabled for SDK usage in a console or service application.

Sample code

private VideoCaptureCore videoCapture;

private async Task SampleMethod()
{
if (videoCapture == null)
{
videoCapture = new VideoCaptureCore();

videoCapture.Video_CaptureDevice = new VideoCaptureSource("camera name");
videoCapture.Video_CaptureDevice.Format_UseBest = true;

videoCapture.Audio_CaptureDevice = new AudioCaptureSource("mic name");
videoCapture.Audio_CaptureDevice.Format_UseBest = true;

videoCapture.Video_Renderer.VideoRenderer = VideoRendererMode.None;

videoCapture.Mode = VideoCaptureMode.VideoCapture;
videoCapture.Output_Format = new MP4Output();

videoCapture.Output_Filename = "output.mp4";

await videoCapture.StartAsync();
}
else
{
await videoCapture.StopAsync();

videoCapture.Dispose();
videoCapture = null;
}
}

Required redists

How can the required redists be installed or deployed to the user's PC?


Visit our GitHub page to get more code samples.