New to Telerik UI for WPF? Start a free 30-day trial
Disable Audio Recording
Updated on Sep 15, 2025
This article shows how to stop the audio recording when a video is captured.
-
Add the control to the logical tree of the view and subscribe to its
Loadedevent. Then, set itsAutoStartproperty toFalse.Defining RadWebCam
XAML<telerik:RadWebCam x:Name="radWebCam" AutoStart="False" Loaded="RadWebcam_Loaded"/> -
In the event handler, get the camera device and video format, and call the
Initializemethod of the control. To disable the audio, set the last parameter ("audioDevice") of the Initialize method tonull. Then start the camera.Starting the camera manually
C#private void RadWebcam_Loaded(object sender, RoutedEventArgs e) { ReadOnlyCollection<MediaFoundationDeviceInfo> videoDevices = RadWebCam.GetVideoCaptureDevices(); ReadOnlyCollection<MediaFoundationVideoFormatInfo> videoFormats = RadWebCam.GetVideoFormats(videoDevices[0]); this.radWebCam.Initialize(videoDevices[0], videoFormats[0], null); this.radWebCam.Start(); }