stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
593 stars 99 forks source link

Use the --enable-media-stream functionality #653

Open viral98 opened 4 years ago

viral98 commented 4 years ago

The OBS studio project has an option to execute the obs64.exe with flags --enable-media-stream in order to access the microphone and camera from browser source, what would be the equivalent here?

viral98 commented 4 years ago

@summeroff Any idea about this? I need to load a local file in browser source which needs access to the camera through the browser. The general OBS repository allows this by simply executing the obs64.exe as ./obs64.exe --enable-media-stream however, I couldn't find an alternative on obs-studio-node.

EddyGharbi commented 4 years ago

These options are currently not supported from obs-studio-node.

viral98 commented 4 years ago

Thanks for the response, @EddyGharbi I was wondering if you are aware of any way through which I can achieve this functionality? Would rebuilding the obs-browser (streamlab's fork) and in https://github.com/stream-labs/obs-browser/blob/1f0e0ed57c28c2b0eee70e9c1e0aa26a4e5fbe37/browser-app.cpp#L80 similar to enable-gpu, I just append enable media stream and rebuild? Would that help? Again, I appreciate your help!