Add per-source camera and microphone permission - #530
Conversation
fa713dc to
0fd6c79
Compare
Checkbox that allows browser source to capture camera of microphone sources. This has to be set per-source, while launch flags work globally. CEF permission handler is used to get per-source limitation. Using --enable-media-stream flag still overrides this so compatibility remains.
0fd6c79 to
130874e
Compare
|
@Warchamp7 Would you prefer this as-is, or a dropdown similar to Page permissions, allowing the user to choose from something like
Or some other implementation. |
|
I'd like to know more about the use cases this is for first. |
My own usecase is to use webcam in web app running inside browser source. |
What sort of web app? Basically why is this needed in OBS versus simply capturing an actual proper browser instead? |
Since it's webcam overlay, I think browser source is better fit than capturing browser when you can just drop link into OBS and it works right away. This is simply the easiest experience for user. |
What sort of webcam overlay? Can you please provide an actual example? |
There you go (WIP): https://efekti.arkkis.com/studio |
I'm still not seeing a reasonable justification for why this needs to be implemented as a browser source instead of a separate page or even standalone app. |
Description
Added checkbox to browser source to allow browser to access camera and microphone.

Motivation and Context
This allows usage of cameras and microphones via browser source easier than using launch flag: --enable-media-stream
How Has This Been Tested?
This has been tested by building OBS Studio locally, and used webcam embedded web page for testing.
OS: CachyOS x86_64
Kernel: Linux 7.1.4-1-cachyos
Camera: Elgato Facecam MK2
OBS Studio Source version: 32.2.1
Types of changes
Checklist: