Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #2,002 · 726 reputationPosted Feb 7, 2017, 3:01 AM EST
Avnish KumarRank #1,003 · 2K reputationPosted Feb 8, 2017, 9:29 PM EST
Mohamed AbedallahRank #2,074 · 697 reputationPosted Feb 16, 2017, 12:02 AM EST
The following few lines of code will do the job:
/*******************************************/
CaptureCtrl1.AudioDevices[0].Selected= 0;
CaptureCtrl1.VideoDevices[0].Selected= 0;
CaptureCtrl1.PreviewSource = CapturePreview.Audio;
CaptureCtrl1.TargetFormat = TargetFormatType.MP3;
CaptureCtrl1.TargetFile = @"C:\output.avi";
CaptureCtrl1.StartCapture(CaptureMode.VideoAndAudio);
/*******************************************/
Disclaimer: I work for the company that created this library.
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Feb 5, 2017, 10:16 PM EST