Reputation: 13
I have an Win32 application based on Chromium Embedded Framework (CEF3) API. In embedded browser window displays the web-page, that uses WebRTC-connection to communicate with another side that has the same application. So we have real-time videochat between two sides.
Now I should provide users an ability to choose capture devices (microphone and webcam) for WebRTC session if the system has several ones, because browser window captures only default devices. The problem is that CEF3 API doesn't provide that functionality (documentation nothing says about it, also there are no answers on official CEF forum in topic about this question).
Is there any way to implement that task via Win32 API? I found some information about how to enumerate devices (using SetupDi* functions, using DirectShow API), but not about how to enable/disable a specific device for my app. What exactly I should use for solve this problem?
Advice please, I'll be thankful for any help. It will be nice to see the code examples, if possible.
Upvotes: 0
Views: 343
Reputation: 1353
Take a look at microsoft samples of directshow. It's all over there. https://msdn.microsoft.com/en-us/library/windows/desktop/dd375468(v=vs.85).aspx
Upvotes: 0