Hello,
I'm developing a website and would like to integrate functionality into OBS through a Browser Source. The website uses a Bluetooth accessory, but I am unable to connect it in the OBS Browser Source, as upon using the 'interact' method to click the 'connect' button that triggers a Bluetooth connection modal, nothing shows up. This is also true for Javascript alerts, they do not show up in Browser Sources.
Bluetooth connectivity is implemented in Chrome and Chromium, and I believe the OBS Browser is based on Chromium, through CEF. I don't know anything about how the embedded framework affects behavior or capability, but I was wondering if getting these modals to display is possible, or within reason. If it's a technical nightmare or likely never to be implemented, I'll quit barking up this tree, but I can't help but be very excited by the possibilities of Browser Source integration in OBS with Bluetooth accessories and would want to try and pursue any way to make that happen.
Thanks for your time!
Tazz
(I've written a simple HTML page to demonstrate the functionality I'm looking for. When opened in Chrome, it will display a Javascript alert on page load, and bring up a Bluetooth connection modal on clicking 'connect'. When used as a browser source in OBS, it does not do either of those. I'll attach the code and also supply the HTML file in a zip folder for ease of download and testing.)
I'm developing a website and would like to integrate functionality into OBS through a Browser Source. The website uses a Bluetooth accessory, but I am unable to connect it in the OBS Browser Source, as upon using the 'interact' method to click the 'connect' button that triggers a Bluetooth connection modal, nothing shows up. This is also true for Javascript alerts, they do not show up in Browser Sources.
Bluetooth connectivity is implemented in Chrome and Chromium, and I believe the OBS Browser is based on Chromium, through CEF. I don't know anything about how the embedded framework affects behavior or capability, but I was wondering if getting these modals to display is possible, or within reason. If it's a technical nightmare or likely never to be implemented, I'll quit barking up this tree, but I can't help but be very excited by the possibilities of Browser Source integration in OBS with Bluetooth accessories and would want to try and pursue any way to make that happen.
Thanks for your time!
Tazz
(I've written a simple HTML page to demonstrate the functionality I'm looking for. When opened in Chrome, it will display a Javascript alert on page load, and bring up a Bluetooth connection modal on clicking 'connect'. When used as a browser source in OBS, it does not do either of those. I'll attach the code and also supply the HTML file in a zip folder for ease of download and testing.)
HTML:
<html>
<head>
</head>
<style>
body {background-color:rgb(53, 53, 53)}
</style>
<body>
<button id="connect">Connect</button>
</body>
<script>
alert("This is a JavaScript alert in OBS!");
document.getElementById("connect").onclick = function(){run();}
async function run()
{
const device = await navigator.bluetooth.requestDevice(
{
acceptAllDevices: true
});
}
</script>
</html>