If I understand this correctly, this actually sends frames (actual images) over the network, which are constantly updated in the server app. Is there a way to send an actual stream, and by that I mean a flow of info in a more efficient way ( I imagine the webcam apps send a flow of changed pixels from moment to moment, but do correct me if I'm wrong since this is just a guess). I'm thinking this way since the transmission is intermittent with the example above, even if I modified the sending interval to about 5 ms. I was also thinking of reducing the image size, but so far I didn't manage to do that.
Any suggestions?