Best way to add WebRTC stream to Nicegui app #3147
Replies: 3 comments 10 replies
-
Did you achieve this somehow? I desparately need this feature |
Beta Was this translation helpful? Give feedback.
-
What kind of features do you need from WebRTC? If you only nee the video transfer, you can look at |
Beta Was this translation helpful? Give feedback.
-
Has there been any updates on this? |
Beta Was this translation helpful? Give feedback.
-
What is the recommended way for displaying a WebRTC stream in Nicegui?
I found this Nicegui example that can display a webcam (and rtsp?) stream using OpenCV: https://github.com/zauberzeug/nicegui/blob/main/examples/opencv_webcam/main.py. However that approach does not appear to support WebRTC.
Upon further search I found this related solution for Streamlit: https://github.com/whitphx/streamlit-webrtc
Another potential approach could be embedding this javascript example from the aiortc WebRTC Python package in a
ui.html
element: https://github.com/aiortc/aiortc/tree/main/examples/serverI would be interested to hear ideas on the best approach to add a WebRTC stream to a nicegui app! This would be really usefull for robotics applications.
Beta Was this translation helpful? Give feedback.
All reactions