Completed
Last Updated: 17 Aug 2022 08:26 by ADMIN
Release R2 2022 SP1 (2022.2.622)
Haithem
Created on: 06 Jun 2022 10:58
Category: WebCam
Type: Bug Report
0
RadWebCam: "System.Exception: What the heck was that?" when connecting to a camera device

Run the sample project. You will observe the following error:

Here is the code snippet:

        public RadForm1()
        {
            InitializeComponent();

            this.radWebCam1.AutoStart = false; 
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            ReadOnlyCollection<MediaFoundationDeviceInfo> videoDevices = RadWebCam.GetVideoCaptureDevices();
            ReadOnlyCollection<MediaFoundationVideoFormatInfo> videoFormats = RadWebCam.GetVideoFormats(videoDevices[0], true);
            ReadOnlyCollection<MediaFoundationDeviceInfo> audioDevices = RadWebCam.GetAudioCaptureDevices();

            radWebCam1.Initialize(videoDevices[0], videoFormats[0], audioDevices[0]);
        }

        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
           
            radWebCam1.Start();       
        } 

Note: It worked in 2022.1.222.40.

Attached Files:
5 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 17 Aug 2022 08:26

Hi, 

I would like to follow up with further information about the Upgrade Wizard which doesn't upgrade the Telerik.Windows.MediaFoundation assembly. After discussing it with the team, we considered this as an issue with the Upgrade Wizard. We have already logged an internal item to improve the experience when upgrading to avoid such an inconvenience.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 16 Aug 2022 14:23

Hello, David,

I confirm that the Upgrade Wizard doesn't update the version of the Telerik.Windows.MediaFoundation assembly. You should do it manually.

I am glad to hear that the problem you were facing is now resolved.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

David
Posted on: 15 Aug 2022 16:27
Even after upgrading, I still had the issue. It seems the upgrade wizard did not update Telerik.MediaFoundation DLL. Once I updated that reference, the error was gone.
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 15 Aug 2022 04:32

Hello, David,

I would like to note that the issue has already been addressed and a fix introduced in R2 2022 SP1 (2022.2.622). Feel free to upgrade in order to benefit from the fix.

In case you are still experiencing any difficulties with connecting a camera device to RadWebCam, it would be greatly appreciated if you can provide a sample runnable project demonstrating the problem you are facing. Thus, we would be able to make an adequate analysis of the precise case and provide further assistance.

Thank you in advance.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


David
Posted on: 12 Aug 2022 18:12
I am seeing this too