I want to create a program that will transfer video from a USB webcam via the Internet to a web page.
I am currently using a web service that, when launched, calls fswebcam to capture the image, save it to the data store, convert base64 to binary64 and send this data to an HTML page, where it is displayed in the 'src' of img attribute. The HTML page has JavaScript that calls this service once per second.
As you can tell, this is a terrible way to do this. I would rather have the right thread if I can. But I do not know what technologies are available for this.
The web service is written in nodeJS . The server runs on raspberry pi 2 . I did not ask this question in the raspberry pi forum because I think this is a common Linux/programming problem.
X0r0N
source share