开发者

How can I route audio through bluetooth in Android 2.0 and 2.1?

开发者 https://www.devze.com 2023-03-11 09:04 出处:网络
I can do in in 2.2 by setting the stream type to STREAM_VOI开发者_Python百科CE_CALL, then calling setBluetoothScoOn(true) and startBluetoothSCO(), but the startBluetoothSCO() method is only available

I can do in in 2.2 by setting the stream type to STREAM_VOI开发者_Python百科CE_CALL, then calling setBluetoothScoOn(true) and startBluetoothSCO(), but the startBluetoothSCO() method is only available in 2.2+. I'm probably supposed to use the deprecated setRouting() method, but I can't find any info on how to do that.

I would also like to stream A2DP, but have the same problem - setBluetoothA2dpOn(true) doesn't exist before 2.2.

Any help would be greatly appreciated. Thanks.

0

精彩评论

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