obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
771 stars 218 forks source link

Browser Source does not support Bluetooth Web API #380

Closed ChristopheCVB closed 1 year ago

ChristopheCVB commented 1 year ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

Other

OBS Studio Version (Other)

28.1.2

OBS Studio Log URL

https://obsproject.com/tools/analyzer?log_url=https%3A%2F%2Fobsproject.com%2Flogs%2FP7jtK1lmHjIT7lfs

OBS Studio Crash Log URL

No response

Expected Behavior

Using latest CEF version, support for Bluetooth Web API should work

Current Behavior

navigator.bluetooth.requestDevice({...})

produces the following exception in console DOMException: Web Bluetooth is not supported on this platform. For a list of supported platforms see: https://goo.gl/J6ASzs

Steps to Reproduce

  1. Add a Browser source to OBS with javascript that requests for a BT Device
  2. See that nothing happens

Example URL using Bluetooth Web API: Heart Rate Monitor

Anything else we should know?

No response

derrod commented 1 year ago

CEF doesn't support this apparently: https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=18792

In general we recommend to not use any APIs that are meant for use with user-interactive browser sessions or that require access to resources outside of the web itself.

derrod commented 1 year ago

Closing this as its an upstream issue. If it ever gets supported in CEF that will likely trickle down to OBS.