Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,15 +21,14 @@ if st.button("Confirm"):
|
|
21 |
# WebRTC Configuration with STUN + TURN Server
|
22 |
rtc_configuration = {
|
23 |
"iceServers": [
|
24 |
-
{"urls": ["stun:stun.l.google.com:19302"]}, #
|
25 |
{
|
26 |
-
"urls":
|
27 |
-
"username": "
|
28 |
-
"credential": "
|
29 |
}
|
30 |
]
|
31 |
}
|
32 |
-
|
33 |
# Original Webcam Stream
|
34 |
st.subheader("Original Video Stream")
|
35 |
webrtc_streamer(
|
|
|
21 |
# WebRTC Configuration with STUN + TURN Server
|
22 |
rtc_configuration = {
|
23 |
"iceServers": [
|
24 |
+
{"urls": ["stun:stun.l.google.com:19302"]}, # Google STUN Server
|
25 |
{
|
26 |
+
"urls": "turn:turn.nordvpn.com:1194", # Free TURN server (NordVPN)
|
27 |
+
"username": "random_username",
|
28 |
+
"credential": "random_password"
|
29 |
}
|
30 |
]
|
31 |
}
|
|
|
32 |
# Original Webcam Stream
|
33 |
st.subheader("Original Video Stream")
|
34 |
webrtc_streamer(
|