Recording Video
To start recording a video you can press the "Start recording" button or call the StartRecording method of RadWebCam control.
To enable video recording set the RecordingFilePath property of the control. This is the path to the video where the recording will be stored.
Example 1: Set the recording file path in XAML
<telerik:RadWebCam RecordingFilePath="C:\temp\video.mp4"/>
Example 2: Set the recording file path in code
string videoFileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "video.mp4");
// If there is no "video.mp4" file, such file will get created. If the file exists, it will get overridden.
radWebCam.RecordingFilePath = videoFileName
radWebCam.StartRecording();
Example 3: Stop capturing a video
radWebCam.StopRecording();
Setting the IsRecording property of RadWebCam will also start or stop the recording.
Elapsed Time Format
The control allows you to replace the default elapsed date-time format. To do this, set the VideoRecordingElapsedTimeFormat property of the RadWebCam control.
Figure 2: Elapsed time default format
Example 4: Set VideoRecordingElapsedTimeFormat in XAML
<telerik:RadWebCam VideoRecordingElapsedTimeFormat="ss" />
Example 5: Set VideoRecordingElapsedTimeFormat in code
this.radWebCam.VideoRecordingElapsedTimeFormat = "ss";