streamlit-webrtc
streamlit-webrtc copied to clipboard
iPhone Camera Stream Issue with Streamlit WebRTC on Tunnels
Hi everyone,
I'm working on a Streamlit WebRTC project using the official streamlit-webrtc GitHub example and have run into a puzzling issue. When I deploy the app using tunnels like ngrok, Cloudflare Tunnel, the iPhone initiates the camera permission process and even indicates that the webcam is streaming, yet no video is displayed. The same code runs flawlessly on a Mac and on Android devices, and notably, the official instance at webrtc.streamlit.app works perfectly on iPhone.
I've verified that the HTTPS certificates are valid, set minimal media constraints, and configured both STUN and TURN servers, while also ensuring all iOS privacy settings are correctly enabled. Or in other words, I have cloned the streamlit-webrtc GitHub example and also deployed the same app as here.
Despite these efforts, the video stream still fails to appear on iOS through these tunneling services. Has anyone experienced similar issues or have any insights on why tunneled deployments might be failing on iPhone while the official instance does not? Any suggestions or troubleshooting tips would be greatly appreciated.
@whitphx Your help will be much appreciated!
@jackyccl Thank you for the report. I have released a new version of this extension 0.62.4 that has many fixes for the connectivity issues that I found. Please try it out and let us know if the problem still exists.