从 Looxcie 设备访问视频流
我正在寻找是否有一种方法可以从我创建的 Android 应用程序中的蓝牙连接获取音频和视频流。
http://www.looxcie.com/index.php/companion-apps/looxciecam
Looxcie有他们自己的应用程序,可以将视频保存到文件中,但如果可能的话,我希望使用 MediaRecorder 访问原始视频流。
谢谢!
I'm looking to see if there's a way to get the audio and video streaming in from the bluetooth connection in an android app that I'd create.
http://www.looxcie.com/index.php/companion-apps/looxciecam
Looxcie has their own app which saves their video to a file, but I'd want access to the raw video stream using MediaRecorder if possible.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Looxcie 设备缺乏可以帮助开发人员在自定义应用程序中使用它的技术信息。我的建议是,首先检查该设备上可用的蓝牙配置文件,也许有 VDP - 视频分发配置文件、A2DP - 高级音频分发配置文件和 AVRCP - 音频/视频远程控制配置文件。
但据我所知,Android 上只有 A2DP,没有 VDP。因此,他们可能通过 SPP(串行端口配置文件)发送数据并在 Android 上重建它。如果它们以这种方式工作,您将无能为力,它就像一种专有格式。您可以向 Looxcie 询问有关该设备的更多信息,他们看起来像一家友好/热情的开放公司,也许他们会分享信息。
您可以使用的一个技巧是使用该文件功能,并将其像虚拟文件一样放入您的 MediaRecorder 中。同样,它可能不起作用,他们可能不会一直写入,而是定期放置数据块。
The Looxcie device lacks in technical information that could help a developer to use it in a custom application. My advice is that first to check what Bluetooth profiles are available on that device and maybe there is VDP - Video Distribution Profile, A2DP - Advanced Audio Distribution Profile and AVRCP - Audio/Video Remote Control Profile.
But from what I know on Android you have only A2DP and no VDP. So, probably they send data over SPP - Serial Port Profile and reconstruct it on Android. If they work this way, is nothing you can do, it's like a proprietary format. You could ask Looxcie for more information about the device, they look like a friendly/enthusiastic open company and maybe they will share information.
A trick you could make is use that file feature, and have it like a virtual file that goes into your MediaRecorder. Again it may not work, it's possible that they don't write all the time, but periodically put chunks of data.