webcam icon indicating copy to clipboard operation
webcam copied to clipboard

Add find and open func

Open rsjethani opened this issue 6 years ago • 2 comments

Add FindAndOpen() func

This function will lookup suitable webcam device and open it. IMO this is better than hardcoding /dev/video0.

Addresses: Issue #27

rsjethani avatar Oct 15 '19 12:10 rsjethani

Sorry for delayed response. I was a bit in disbelief on how to actually find if device is v4l2 device or not. Apparently there way is indeed to iterate over all "/dev/video*" devices. I'll gladly do a review of this PR then. Thanks for the effort!

blackjack avatar Nov 26 '19 22:11 blackjack

@blackjack so you are saying that I should iterate only over video* devices?

rsjethani avatar Jan 08 '20 22:01 rsjethani