How can I capture the microphone audio and webcam images?

I'm developing a project where I'll have to capture the microphone audio and the images from a webcam to compress them during runtime and send through the network to decompress and open them.

How can I do these things




Answer this question

How can I capture the microphone audio and webcam images?