New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
response.stream no more works in Sanic v22.9.0 #2
Comments
I rewrote it later on, maybe try this?
|
It fails at the the very beginning: format = 'webp' Error message: Traceback (most recent call last): |
Give it another try. I have updated it. |
You will need to: replace the 5000 with whatever port you want to run on: export PORT_NUMBER_PREVIEW_SERVER=5000 |
Now it works great in browser. However, this new version has one limitation. It won't play in VLC. I used to use VLC to record the stream. And I will try find another way to record the stream. Thanks for your help. This piece of art do save me a lot of time. |
I can't see why it wouldn't record in VLC if it was doing so before. Have you tried using ffmpeg to save it? |
Error message:
return response.stream(stream_mjpeg, content_type='multipart/x-mixed-replace; boundary=frame')
AttributeError: module 'sanic.response' has no attribute 'stream'
The text was updated successfully, but these errors were encountered: