Replies: 1 comment 1 reply
-
Hi @frankvp11, NiceGUI On Air doesn't support websocket connections (at the moment). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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