-
Notifications
You must be signed in to change notification settings - Fork 384
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
[feature request] Output method to display video in browser #107
Comments
Video streaming is a very interesting use case, however, the tricky part is how do you handle your back-end content delivery network? It's very challenging to globally deliver high-quality live streaming services over the internet. I think a workaround can be using a 3rd party stream API or service, then embedding an HTML block using Thoughts? |
Interesting idea. This is what I tried just now:
Its a simple webcam stream. And the idea is to save each frame in the video stream as an image, convert the image into an html object, and use I also tried saving each image as an html file, and then reading that html file, but I get the same output:
I also tried displaying each image directly using
|
I tried
|
The fade-in effect can be turn off by |
Thanks for this suggestion. Where exactly in the code should this line be? I put it at the end, and it doesn't do anything. |
@PrashantSaikia You should put the |
Tried it just now. Still the same, no change. |
Indeed, there is file reading/writing latency that prevents your "streaming" from being smooth and yields this flicker effect. This is pretty much how far you can get using the currently available PyWebIO modules. A dedicated module for streaming output is not a trivial task, and we do not have a plan to support it by the end of 2021 yet. However, things can change if the demand for this module becomes high :) |
is there any road maps which features will be added on in the curse of time? @helincao |
It's not there at this moment. An open roadmap or to-do list might be an interesting idea. Let us do a little exploration and see how to support it. If you have ideas, please join our Discord server for brainstorming: https://discord.gg/MvaCcg76Z7 |
Thanks @helincao for introducing me to the group. |
I am making a computer vision app where I need to display the webcam stream on the browser. Is there a way to do this currently in pywebio?
For example, in flask, we can do it this way. But, of course, since quite a lot of effort is needed to achieve this functionality in flask, I would very much love it if pywebio can handle this. Something like 'put_video', similar to 'put_image' would be great!
The text was updated successfully, but these errors were encountered: