So, the question is pretty much as in the title, but here’s some more info:
My final project is going to be a cloud of objects, just simple quads with video textures.
For some of these objects, I want to use live video input. That isn’t hard, in itself, but I want to use multiple webcams, and select which webcam is being used randomly for each new object.
The solution I was thinking of was to randomly select a video device from the automatically generated list of devices from the VL.Video.MediaFoundation nuget, but the whole dynamic enum thing is confusing me. How can I go about selecting a random element from this dynamic enum?
If I could only do that, everything else would fall into place.
I think I could make a static solution to this, just hard-coding the specific devices, generating the video textures, and then selecting from these textures for the final object, but I’d prefer to just dynamically pick from the enum of devices, so I can plug-and-play. I’m not sure how many webcams I’ll use, and it seems like a poor solution to just rely on manually configuring it all.
Any ideas on how I could make this work? Hopefully without having to dive into the non VL code 😚
Thank you for reading, and for any help you have! I can provide the patch if y’all want it, but I didn’t think it would really clarify the issue much. Please lemme know if there are any questions I can answer for you :)