Hi @tf123,
From the description of your use case, it sounds like the streamlit-webrtc component might be helpful – check it out here