Remove video recording from radWebCam

1 Answer 188 Views
WebCam
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Jana asked on 28 Jun 2021, 09:05 AM

Hello,

I would like to know if it's possible to disable the video recording function in a radWebCam. I would like to use it to take snapshots only.

 

Thank you and have a nice day!

1 Answer, 1 is accepted

Sort by
1
Stoyan
Telerik team
answered on 29 Jun 2021, 01:03 PM

Hello Jana,

In order to disable the video recording of the RadWebCam there are two approaches you can do.

  1. You can set the visibility of the recording button to Collapsed with the following line of code:
    radWebCam.WebCamElement.ToggleRecordingButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    This way the button will be hidden and only the snapshot button will be visible.
  2. Even if you hide the button, you can still programmatically run a recording session. So you can cancel any recording with the RecordingStarted event. Just set the Cancel property of the CancelEventArgs to true and you will cancel the recording:
    radWebCam.RecordingStarted += (s, e) => { e.Cancel = true; };

I hope this information will help you with your query.

If you need more assistance, do not hesitate to get in touch with us.

Have a great day!

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
WebCam
Asked by
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Stoyan
Telerik team
Share this question
or