whitphx / streamlit-webrtc

Real-time video and audio streams over the network, with Streamlit.
https://discuss.streamlit.io/t/new-component-streamlit-webrtc-a-new-way-to-deal-with-real-time-media-streams/8669
MIT License
1.27k stars 173 forks source link

can streamlit-webrtc use rtsp camera? #1283

Open Kerry678231 opened 1 year ago

Kerry678231 commented 1 year ago

can streamlit-webrtc use rtsp camera? and how to config it?

whitphx commented 10 months ago

Yes, this example may help: https://github.com/whitphx/streamlit-webrtc/blob/538e886a5ac2ba74feab262440b162e510044e21/pages/8_media_files_streaming.py#L43 https://github.com/whitphx/streamlit-webrtc/blob/538e886a5ac2ba74feab262440b162e510044e21/pages/8_media_files_streaming.py#L53-L57 https://github.com/whitphx/streamlit-webrtc/blob/538e886a5ac2ba74feab262440b162e510044e21/pages/8_media_files_streaming.py#L121