Skip to content

iPhone Camera Stream Issue with Streamlit WebRTC on Tunnels #2007

@jackyccl

Description

@jackyccl

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions