I am trying to upload a video stream to the server; it's 6fps, so basically I have to upload 6 images to the RESTful web service per second.
In the past, as a simple demonstration, I captured each image of the video, encode it in base-64, and transfer each image to the server separately. There was just one client and one server, so load wasn't an issue.
However, I have to handle multiple users this time and it doesn't seem very smart to send a request for each image. Each video is ~5 minutes long.
Can someone point me the right direction to implement this?
Alternatively, I am given the following code to display the images as video stream in html.
response = "Content-type: image/jpeg\n\n"
response = response + self.server.camera.get_image()
response = response + "\n--%s\n" % boundary
Aucun commentaire:
Enregistrer un commentaire