从智能手机中流出
我正在检查从智能手机(Android 操作系统)传输音频/视频内容的可能性。
我想知道,是否可以使用内置的视频/音频记录器(Java 类)来编码/压缩视频,并直接访问生成的缓冲区,然后使用套接字将其发送出设备?
或者
我应该使用例如 NDK 和 NDK 来实现我自己的编码逻辑吗?独立发电计划?
任何帮助将不胜感激。
I am inspecting the possibility of streaming Audio/Visual content OUT of the smartphone (Android OS).
I wonder, is it possible to use the built in Video/Audio recorder (Java class) to encode/compress the video, and get direct access to resulting buffers which can then be sent out of the device using sockets?
OR
Should I implement my own encoding logic using e.g. NDK & IPP?
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MediaRecorder 类有一个
setOutput(FileDescriptor)
方法。您可以尝试创建 LocalSocket 并传递它的文件描述符。我不是 100% 确定它是否有效The MediaRecorder class has a
setOutput(FileDescriptor)
method. You might try creating a LocalSocket and passing it's file descriptor. I'm not 100% sure if it would work though