You should take a look at spydroid
; it does exactly what you are looking for. Their website may be found here: https://code.google.com/p/spydroid-ipcamera/
They provide a library that you can use, along with an explanation of the various streaming options and some code examples. Said information may be found here: https://github.com/fyhertz/libstreaming