CoreBluetooth and audio stream

我的梦境 提交于 2021-02-19 06:32:08

问题


Can I transfer audio stream from one iOS device to other iOS device (for example from 4s to new iPad) using CoreBluetooth framework. Maybe BLE is too slow fo media streaming?


回答1:


Bluetooth Low Energy (BLE) is not intended to stream data !

If you want to a stream you MUST use Bluetooth 2.X+EDR and an appropriate profile. Therefore, if you want to stream audio, you need a headset or A2DP profile.

CoreBluetooth API give only access to BLE devices.




回答2:


Audio streaming wont work any good, since BLE can stream 20 byte packets at a time, with 37.5ms delay between each transfer on iOS5. So this would be laggy and as good as useless. There is always the possibility of buffering the data, but in the end, this is not a good way to stream audio.

|packet| --- 37.5ms --- |packet| --- 37.5ms --- |packet...


来源:https://stackoverflow.com/questions/12185145/corebluetooth-and-audio-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!