Replies: 3 comments 1 reply
-
Hi @frankvp11, NiceGUI On Air doesn't support websocket connections (at the moment). |
Beta Was this translation helpful? Give feedback.
-
I'm curious on if anyone has any ideas on this? The problem has been sitting stale for some time now. I haven't been able to make much progress with it myself :( |
Beta Was this translation helpful? Give feedback.
-
This thread is a bit old but I am having similar streaming situ/requirements but with sound... While shoehorning this into existing NiceGUI setups may not be the path of least resistance... this problem only has to be solved once... I'll take a look at the implementation of Button or Toggle and see if the bind is implemented such that delays can be minimal, if not... a custom control is likely necessary, within or outside NiceGUI. Both for video/sound you don't want to send the data to the server only to have it streamed back to the client... If the Devs have any suggestions how to tackle this it would be greatly appreciated |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello all!
I've been working with NiceGUI for quite some time now and I've been wanting to do a project that relates to this for quite some time aswell.
Basically, I'm looking to have a way that you can do something similar to Microsoft Teams or Zoom. For now, I just want to get something related to webcams working, as I imagine that something like sharing a screen would follow nicely.
The part that I've been struggling with in this project is actually making it so that all the users see eachother video feeds. I am able to make it so that you can go to a route and view your own webcam feed, then if you access it via your phone you can see your phone webcam feed, but I can't get it to display eachother's feeds.
I've also looked around on FastAPI to see if there were any examples, however in both these examples:
I was unable to get it running / working. I've also seen the following nicegui discussions about this (wherein I've conversed also):
Streamlit seems to have something implemented for this already:
https://github.com/whitphx/streamlit-webrtc
However, I have not made much progress from them. I am looking to the community for help in facing this task.
I've set up this code which is barely an MRE:
This code is able to ask the user for their webcam and show it to them when running on localhost, but unable to do so on air. When it's on air, it's unable to connect to the websocket for some reason :(
I would greatly appreciate any help with this endeavour.
Thanks a ton
Beta Was this translation helpful? Give feedback.
All reactions