I am trying to create an application that will broadcast video from an Android phone’s camera over the Internet using TCP or UDP. Currently, I can transfer an array of bytes from an android phone to a computer running a server that I wrote in C #. I already did streaming video, sending .jpeg over the network and showing them at a speed of 30 frames per second, but this increases the bandwidth too much.
First, what would be the best way to capture camera images? I look...
onPictureTaken(byte[] data, Camera camera)
or
onPreviewFrame (byte[] data, Camera camera)
I'm only interested in byte [] data, which receive and encode / compress it, and then send it over the network.
Secondly, how can I include these frames in compressed video, which is an array of bytes that can be transmitted over the network? I don’t care about the quality of the video, I care more about reducing bandwidth.
Here is what I'm trying to do, but I don’t need high quality video.
https://code.google.com/p/spydroid-ipcamera/
source
share