Skip to content

Commit

Permalink
fix turnserver
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Dec 22, 2023
1 parent 3410826 commit c625647
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sendrecv/webrtc_sendrecv.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,17 @@ def start_pipeline(self):
# “stun-server” gchararray
# The STUN server of the form stun://hostname:port

stunserver = '' # default value
turnserver = '' # default value

stunserver = os.environ.get('STUN_SERVER')
if isinstance( stunserver, str ):
stunserver = 'stun-server=' + stunserver
else:
stunserver = ''

turnserver = os.environ.get('TURN_SERVER')
if isinstance( turnserver, str ):
turnserver = 'turn-server=' + turnserver
else:
turnserver = ''

# ice-transport-policy=1
# webrtcbin name=sendrecv bundle-policy=max-bundle {stunserver}
Expand Down

0 comments on commit c625647

Please sign in to comment.