java Android:如何通过蓝牙连接传输视频和音频?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5228442/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android: How to transfer video and audio via bluetooth connection?
提问by Rohith Nandakumar
I want to transfer a live video stream and audio to my computer. Something like the WO Webcam app (https://market.android.com/details?id=com.bwocamlite). I have managed to connect my device with the computer, now how do I transfer the video?
我想将实时视频流和音频传输到我的计算机。类似于 WO 网络摄像头应用程序 (https://market.android.com/details?id=com.bwocamlite)。我已成功将设备与计算机连接,现在如何传输视频?
回答by Dennis Mathews
The standard way to transfer audio and video over Bluetooth is using standard profiles A2DP and VDP respectively. Standard android versions does not support VDP for video , also the PC side needs to have these profiles sink roles in order to receive the streams.
通过蓝牙传输音频和视频的标准方法是分别使用标准配置文件 A2DP 和 VDP。标准 android 版本不支持视频 VDP,PC 端也需要有这些配置文件接收器角色才能接收流。
The WO Webcam app uses the SPP profile to send video frames and audio packets over Bluetooth and it re-constructs the same on the PC and plays back, you can also do the same.
WO 网络摄像头应用程序使用 SPP 配置文件通过蓝牙发送视频帧和音频数据包,并在 PC 上重新构建并播放,您也可以这样做。