| ▲ | cogman10 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
It comes down to package distribution. Chrome had already solved the hard problem of "how do we support webcams on linux, windows, and mac" and you as the dev just needed to use the Javascript webcam api. ( https://developer.mozilla.org/en-US/docs/Web/API/MediaDevice... ) In C++ land, you are ultimately going to either need to cook up your own webcam library or look for a 3rd party (which, in 2010, likely didn't exist) to provide it. Today, there are a few easy to discover rust crates which provide cross platform webcam apis. But further, rust does cross platform better than C/C++ IMO. It's really easy to change how code is compiled based on the target. That was all well thought out because rust was supposed to be a language for browsers. | |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | bluGill a day ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
A cross platform webcam library isn't that hard to build at C++. I mean, it's tedious, and having to support multiple different operating systems makes it harder, so it certainly is going to cost a small pile of money, but this is not hard. The pile of money needed won't be all that large. Mind you, I prefer to use something that's off the shelf rather than writing my own, but it would not be hard to write my own. The hard part of all webcam libraries is all the different webcams running all their different proprietary protocols. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | pjmlp 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Qt is easily obtainable via vcpkg or conan. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | jpc0 a day ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
It is 2026 and regardless it has been quite a while that cmake fetch content had been usable. The only reason why a cross platform well supported C++ package/module isn't available is because nobody has bothered to build it. If it really is something that bugs you then be the one to do it, throw your clanker of choice at it and integrate it into a project you run in production. "Chromium ahips with it" isn't a valid excuse these days, that is likely an hour or two away with a modern LLM, building and packaging electron is more work. | |||||||||||||||||||||||||||||||||||||||||||||||