This question already has an answer here: How do I test a camera in ... It's not possible to access camera of your development machine to be ...
stackoverflow.com