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

How to change video source in streamlit_webrtc? #1080

Open Khubaibahmed-dev opened 1 year ago

Khubaibahmed-dev commented 1 year ago

Hi, appreciated for your great, i wonder how to change video source as i want to stream my ip camera using rstp,

whitphx commented 1 year ago

See this example: https://github.com/whitphx/streamlit-webrtc/blob/f2cd41492da9f14146a32ad6301988d23e516041/pages/media_files_streaming.py#L42

You can consume an RTSP like this.