streamlit-webrtc icon indicating copy to clipboard operation
streamlit-webrtc copied to clipboard

streamlit-webrtc does not work on chrome (tested on Android and macOS)

Open gustavz opened this issue 2 years ago • 3 comments

streamlit-webrtc seems to not work on chrome browser, I tested in on both Android and macOS with multiple apps. On both devices it works with Firefox though. Any idea why?

gustavz avatar Jan 02 '23 07:01 gustavz

I do examples on Edge and chrome , streamlit-webrtc works.

hcgprague avatar Feb 23 '23 09:02 hcgprague

I have kind of similar issue, and it took a lot of time (less than 1 minute) to initialize the connection on mobile devices . FYI, I have my service deployed on Azure behind a NGINX server. It seems the webrtc connection took a lot of time to get connected. Any suggestions to fix it?

JC1DA avatar Mar 07 '23 18:03 JC1DA

Similar issues: https://github.com/whitphx/streamlit-webrtc/issues/852#issuecomment-1139837756 https://github.com/whitphx/streamlit-webrtc/issues/552#issuecomment-1108781763

Basically, when at least one side of the connection, either of the server of the browser, is in some network configs such as being behind a proxy, WebRTC connection can't be established without a TURN server. So,

  • @JC1DA 's case looks like it.
  • The reason why @gustavz 's and @hcgprague 's report differed was it - maybe their network environment were different. https://github.com/whitphx/streamlit-webrtc/issues/852#issuecomment-1139837756 was an example where someone could and others couldn't use the WebRTC example.
  • If you are accessing https://webrtc.streamlit.app/, there is a problem on the server-side, which is discussed at https://github.com/whitphx/streamlit-webrtc/issues/1213. So please track the discussion there for the case of https://webrtc.streamlit.app/

whitphx avatar Mar 17 '23 17:03 whitphx