Android:捕获图像并通过 Socket 将其发送到 Applet
我想在 Android 上实现一个简单的视频流。我可以通过 TCP 套接字发送单个图像镜头,但我在快速发送多个图像时遇到问题。我使用常见的相机功能,包括预览、表面固定器等。 http://developer.android.com/reference/android/hardware/Camera.html
使用此功能的方法是否错误?我怎样才能实现这种视频流?
I want to implement a simple video streaming vor Android. I can send single image shots via TCP Socket, but I have problems to send several images quickly. I use the common Camera functionality with preview, surfaceholder etc.
http://developer.android.com/reference/android/hardware/Camera.html
Is my approach wrong, to use this functionality? How can I implement such kind of video streaming?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您应该提供更多详细信息,例如您想要多快,或者数据的类型和大小。
一般来说,发送单张图像就可以了,甚至发送多张图像也没有什么大问题。然而,视频流需要大量的带宽和 CPU 速度。并且视频不应作为图像发送,它可以是视频文件或视频流,取决于您的要求。
Maybe you should give more details, such as how quickly do you want, or what kind of and how large the data is.
Generally speaking, send single image is okay, even several images are still no big problem. However, vedio streaming requires a large amount of bandwidth and CPU speed. And the video should not be sent as images, it could be either a vedio file or vedio streaming, deponds on your requirment.
我确实玩了一段时间 MJPEG。这可能会为您提供发送视频的简单方法的提示。
I did play around with MJPEG for a while. This may give you a hint for a simple way to send video.