Download

How to "find" a specific device in Enumerate Video Capture Device array?

Probably being really dumb here, but is it possible to use find on an array of structures to find a specific element?

Specifically…
I do an EnumerateVideoCaptureDevices node which returns an array of “MediaCaptureDevice” structures. I want to find the element where “Display Name” equals “HD Pro Webcam C920” and return the value of the URL part of the structure.

I can’t for the life of me figure out how you use the “find” node on an array of structures to do this. Can anyone give me a clue here? Or do I just have to iterate over all the structures in the array and check each one?

This is what I ended up with and it works but it’s REAL ugly. Is there a way to just use “find” instead of iterating like this?