HTML5 Bluetooth and Audio

后端 未结 2 1580
谎友^
谎友^ 2020-12-16 02:18

HTML 5 mentions Bluetooth and audio. But no details on Bluetooth.

I am trying to connect to a Bluetooth device that streams audio.

Is there anyway to capture

相关标签:
2条回答
  • 2020-12-16 03:02

    The link that you've referred to is an old draft of the specification, and it's not included in the current version of the HTML5 draft.

    HTML5 Device API Requirements specifies about interfaces that can get the information of the available network interfaces and provides no way to control them.

    So you cannot use HTML5 to connect to a Bluetooth device that streams audio.

    You might be able to achieve this by writing your own ActiveX Component (works only in IE) or an Applet.

    You'll need desktop application to connect and stream data through Bluetooth.

    0 讨论(0)
  • 2020-12-16 03:04

    Desktop versions of Google Chrome now have a Chrome Bluetooth API, so it is now possible to connect to Bluetooth devices from a web page using Google Chrome: https://developer.chrome.com/apps/bluetooth

    There is also a web API for Bluetooth, at https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API, however only chrome uses it, and is non-standard.

    0 讨论(0)
提交回复
热议问题