HTML Based function

FreakSheep

New Member
Hello

i have a small issue im working on a HTML based function that needs the rights to use youre mic
so this means you need to hit allow
the issue here is when implementing it as a browser source it wont show because the browser source doesnt shot the Domain (URL) part

are there any ways to make this work

i tryed making it auto allow but well because as of my last knowledge update in September 2021, web browsers are designed with user privacy and security in mind. They do not allow websites to automatically access microphone or camera devices without explicit user consent. This is why the browser prompts the user to allow microphone access when a web page requests it.

Allowing microphone access by default without user interaction goes against these privacy and security principles. It's also not possible to achieve this behavior using standard web technologies, as it would be a significant security concern.
 
Is this Javascript running in a webpage located on the computer running OBS, or is the page being served from somewhere else?
Does the webpage capture and use audio from the mic, or are you just trying to enable the mic and bring the audio into OBS?

I recently wrote a browser dock for OBS to control a couple of TPZ cameras via RS-232 VISCA. As with your mic, browser has to ask permission to use the serial port directly, which wasn't acceptable. I ended up writing a simple web server in Python to handle the serial port. My browser dock uses XMLHttpRequest to pass commands to the server, which handles the serial port.

That approach might not be appropriate if your webpage needs to USE the audio, but there are Python libraries for damn near everything.
 

FreakSheep

New Member
Is this Javascript running in a webpage located on the computer running OBS, or is the page being served from somewhere else?
Does the webpage capture and use audio from the mic, or are you just trying to enable the mic and bring the audio into OBS?

I recently wrote a browser dock for OBS to control a couple of TPZ cameras via RS-232 VISCA. As with your mic, browser has to ask permission to use the serial port directly, which wasn't acceptable. I ended up writing a simple web server in Python to handle the serial port. My browser dock uses XMLHttpRequest to pass commands to the server, which handles the serial port.

That approach might not be appropriate if your webpage needs to USE the audio, but there are Python libraries for damn near everything.
Thanks for the info

yea my page indeed needs mic permission because im working on a live Subtible function
i did already add it to a local server because i kept loosing connection so this is fixed but im still forced to tun in in a active window and use window capture
if obs just allowed you to use the browser source interact to see the whole web page including the URL bar this would already fix that problem
 
Top