开发者

Android: Capturing Images and sending them via Socket to an Applet

开发者 https://www.devze.com 2023-03-01 16:32 出处:网络
I want t开发者_如何学运维o 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 fun

I want t开发者_如何学运维o 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?


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.


I did play around with MJPEG for a while. This may give you a hint for a simple way to send video.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号