Comments (4)
This is a Motion JPEG stream, which is a very limited form of video streaming. How a stop/restart is handled really depends on how the different browsers implement their Motion JPEG players. I would suggest that instead of stopping the stream you keep the stream running and send a repeat frame, so that it looks like the stream stopped. A real stop and resume will need to be tested on all browsers to make sure it is handled well.
from flask-video-streaming.
Oh, so the idea is not to stop the generator stream but show a repeat frame!
Yeah, sounds reasonable.
Thanks!
OFF-TOPIC:
I would like to ask something not related, I just don't know where to reach you.
I am doing a lot of IoT projects and I find WebSocket(Flask-SocketIO, Flask-Sock) to be a little over the top and looking for a simpler solution like Server-Sent-Events.
Do you happen to have an idea how to best do this in a Flask application running on a Rasberry Pi?
I actually have been evangelizing your MicroDot framework (in MicroPython) by doing loT projects with it and doing my best to write good blog content.
The reality is, I could not find enough solutions for both Flask and MicroDot.
Sorry to hijack this thread, please feel free to let me know where is the proper forum.
from flask-video-streaming.
Thanks for blogging about microdot! I have seen some of your posts already, good stuff!
If you are looking for SSE in Microdot that is not available yet, but it is in my todo list to implement at some point. The WebSocket implementation in microdot is fairly simple and easy to use, and it also works when using microdot in standard Python, without any code changes. It does not work with Flask, however.
from flask-video-streaming.
Thanks for the kind words!
from flask-video-streaming.
Related Issues (20)
- How to send meta data Along with the image stream ? HOT 3
- The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a generator. HOT 3
- How does darknet yolo call the USB camera? HOT 1
- I need this to run in SSL HOT 1
- How to control the speed of video feed flow showing in the webpage? HOT 2
- Can we sync Flask streaming response with OpenCV FPS HOT 5
- IOError: [Errno 104] Connection reset by peer HOT 5
- Allways save the video as mp4 file? HOT 3
- I want to send a string alongwith each frame. HOT 4
- Loading the video stream freezes up all other responses from the Flask server HOT 4
- resetting yield generator during long run HOT 5
- Frames Are Displayed With Delay of One Frame
- Gstreamer backend
- Rotated Pictures HOT 1
- Hello, I don't know why the front-end console can receive a bunch of late results only after the back-end program is finished
- Publish the video through MotionEye HOT 6
- Picamera2/libcamera compatibility HOT 1
- Concurrency question HOT 3
- Return still image when requested HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-video-streaming.