从智能手机中流出

发布于 2024-12-03 14:51:55 字数 197 浏览 1 评论 0原文

我正在检查从智能手机(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

败给现实 2024-12-10 14:51:55

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文