安卓实时上传

发布于 2024-10-05 09:43:55 字数 47 浏览 0 评论 0原文

如何将实时视频(从摄像头捕获的即时视频)上传到 Android 中的网络服务器。

How to upload a live video(instantaneous video capturing from camera) to a web server in android.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

じее 2024-10-12 09:43:55

没有对原始视频数据的直接 API 访问。

Android 的 MediaRecorder 创建一个文件。您可以连续读取该文件并将数据发送到服务器。这并不完美 - 在某些手机上,MediaRecorder 会非常偶尔地更新此文件(= 将数据刷新到文件)。您可能会看到 10-30 秒的延迟。

There is no direct API access to raw video data.

Android's MediaRecorder creates a file. You could continuously read that file and send data to the server. This does not work perfectly - on some phones MediaRecorder updates this file (= flushes data to file) very sporadically. You could see delays of between 10-30 seconds.

ゃ人海孤独症 2024-10-12 09:43:55

您应该使用客户端软件从摄像机捕获流。当然,您可以使用 RTSP 客户端或 MMS。此外,Web 服务器必须能够存储您发送到服务器的流。

问候!

You should use a client software to capture the stream from the camera. Surely, you could use an RTSP client or a MMS. In addition, the Web server must be able to store the stream that you send to the server.

Regards!

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