Fix
Browse files
main.py
CHANGED
|
@@ -5,7 +5,9 @@ frontend_ice_type = st.selectbox("Frontend ICE type", ["Empty", "Google STUN", "
|
|
| 5 |
backend_ice_type = st.selectbox("Backend ICE type", ["Empty", "Google STUN", "Twilio TURN"])
|
| 6 |
|
| 7 |
if frontend_ice_type == "Empty":
|
| 8 |
-
frontend_rtc_configuration = {
|
|
|
|
|
|
|
| 9 |
elif frontend_ice_type == "Google STUN":
|
| 10 |
frontend_rtc_configuration = {
|
| 11 |
"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]
|
|
@@ -19,7 +21,9 @@ elif frontend_ice_type == "Twilio TURN":
|
|
| 19 |
}
|
| 20 |
|
| 21 |
if backend_ice_type == "Empty":
|
| 22 |
-
backend_rtc_configuration = {
|
|
|
|
|
|
|
| 23 |
elif backend_ice_type == "Google STUN":
|
| 24 |
backend_rtc_configuration = {
|
| 25 |
"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]
|
|
|
|
| 5 |
backend_ice_type = st.selectbox("Backend ICE type", ["Empty", "Google STUN", "Twilio TURN"])
|
| 6 |
|
| 7 |
if frontend_ice_type == "Empty":
|
| 8 |
+
frontend_rtc_configuration = {
|
| 9 |
+
"iceServers": []
|
| 10 |
+
}
|
| 11 |
elif frontend_ice_type == "Google STUN":
|
| 12 |
frontend_rtc_configuration = {
|
| 13 |
"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
if backend_ice_type == "Empty":
|
| 24 |
+
backend_rtc_configuration = {
|
| 25 |
+
"iceServers": []
|
| 26 |
+
}
|
| 27 |
elif backend_ice_type == "Google STUN":
|
| 28 |
backend_rtc_configuration = {
|
| 29 |
"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]
|