Skip to content

Shared Mode not working #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LearnedVector opened this issue Apr 10, 2025 · 7 comments
Closed

Shared Mode not working #13

LearnedVector opened this issue Apr 10, 2025 · 7 comments

Comments

@LearnedVector
Copy link

I am not able to open up the Virtual cam on multiple camera apps (i.e. zoom and obs).

It seems like you have MF_DEVICESTREAM_FRAMESERVER_SHARED set to 1 but still not able to share! Anything we need to do to get this working for multiple apps?

@smourier
Copy link
Owner

smourier commented Apr 10, 2025

VCamSample's code is inspired (but I believe more simple and easier to understand) from the official Microsoft sample here https://github.com/microsoft/Windows-Camera/tree/master/Samples/VirtualCamera, you could try if it does the same (I think it does).

Anyway sharing a camera is most of the time not related to the camera itself but more to how clients open it. I can't use my real camera with obs or https://googlechrome.github.io/samples/image-capture/grab-frame-take-photo.html either (don't have zoom), if I open it with Windows 11's Camera app for example, ie: it's more a camera client thing.

@LearnedVector
Copy link
Author

LearnedVector commented Apr 10, 2025

Hmmm, ok i also noticed this doesn't work on chrome browsers... is that expected or something on my end? to be specific, it seems to not be working on google meets

@LearnedVector
Copy link
Author

for more context, i went to this site https://webcamtests.com/ and tested your vcam implementation, and it says "busy or block". note that i do not have any other camera app opened. Just want to confirm you are also seeing similar things?

Image

@LearnedVector
Copy link
Author

hi again! just wanted to include additional context. Whenever i disable Media foundation video capture on chrome, it works!

Image

Image

@smourier
Copy link
Owner

I don't have any problem with this site, running on chrome, Edge or FireFox, with Chrome's "MediaFoundation Video Capture" settings just configured by Default.

@JecobYau
Copy link

Image Please tell me how to register VCamSampleSource.dll to the system under win11 system

@smourier
Copy link
Owner

Image Please tell me how to register VCamSampleSource.dll to the system under win11 system

Just follow the readme here https://github.com/smourier/VCamSample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants