MJPEG support within crow #890
Labels
discussion
The viability / implementation of the issue is up for debate
feature
Code based project improvement
question
Issue can be closed by providing information
Hello,
I'm trying to implement MJPEG streaming using Crow. I had an example working with flask and I tried to convert it to Crow.
This is the code I add in flask :
I am generating the image stream using GStreamer and my webcam :
I tried to implement the following in Crow :
I seem to not be able to load images, as the browser is constantly refreshing without showing any image.
When I access http://localhost:5000/streaming/jpeg/test1 I get redirected to the index on /.
EDIT: I believe the problem lies here: Crow's HTTP response model is different from Flask's, and it requires that the response is returned and completed at the end of the route handler. Crow does not have a direct equivalent to Flask's yield, which allows for continuous response streaming.
The text was updated successfully, but these errors were encountered: