开发者

HTML5 Bluetooth and Audio

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

I am trying to 开发者_C百科connect to a Bluetooth device that streams audio.

Is there anyway to capture the audio streams via Bluetooth on browser? HTML+Javascript? Plug-ins? Any other technique?

Thanks in advance for your help.


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.


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.


There is now a MediaStream API that allows you access to any video and audio streaming device that the user has connected. You can checkout the specs here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜