Teaonly / android-eye

Change your android phone to surveillance camera
Other
1.08k stars 492 forks source link

How to move the server out of Android Device as it heats up #17

Open heatrs opened 10 years ago

heatrs commented 10 years ago

I was thinking if I can move the server out from device itself and put it on a different server. I tried to do it but code is too complex, any suggestions or already done code piece would help a ton!

Open for suggestions.

rabidaudio commented 10 years ago

I'm not sure what you are suggesting. If you mean having the app send the data to a server which does the HTTP part, I'm not sure what good it would do you. The overhead for the HTTP part is pretty low.

heatrs commented 10 years ago

Thats what exactly I meant, sending the video frames to a backend server over HTTP or any other protocol, but doesnt wanna handle it on the device itself. As it heats up the device pretty quickly.

rabidaudio commented 10 years ago

What's heating up the device is the camera use and the continuous JPEG compression. You will have to send the data to the server somehow, so you might as well do it via HTTP.

You might be able to move the compression step to the server and send only the raw bitmap, but you would have to come up with your own protocol for this, and the network might not be able to handle dozens of uncompressed bitmaps per second.