disable hardcoded TURN
This commit is contained in:
parent
b67479b5f9
commit
3510840227
1 changed files with 1 additions and 18 deletions
|
@ -67,24 +67,7 @@ def get_turn_credentials() -> TurnCredentials:
|
|||
# noinspection PyTypeChecker
|
||||
return token.ice_servers # type: ignore
|
||||
elif provider == "hardcoded":
|
||||
return [
|
||||
{
|
||||
"urls": ["stun:eu-turn4.xirsys.com"],
|
||||
},
|
||||
{
|
||||
"username":
|
||||
"h42bRBHL2GtRTiQRoXN8GCG-PFYMl4Acel6EQ9xINBWdTpoZyBEGyCcJBCtT3iINAAAAAF5_NJptYXJrc3BvbGFrb3Zz",
|
||||
"credential": "17e834fa-70e7-11ea-a66c-faa4ea02ad5c",
|
||||
"urls": [
|
||||
"turn:eu-turn4.xirsys.com:80?transport=udp",
|
||||
"turn:eu-turn4.xirsys.com:3478?transport=udp",
|
||||
"turn:eu-turn4.xirsys.com:80?transport=tcp",
|
||||
"turn:eu-turn4.xirsys.com:3478?transport=tcp",
|
||||
"turns:eu-turn4.xirsys.com:443?transport=tcp",
|
||||
"turns:eu-turn4.xirsys.com:5349?transport=tcp",
|
||||
],
|
||||
},
|
||||
]
|
||||
raise Exception("Don't use hardcoded anymore!")
|
||||
else:
|
||||
raise Exception("unknown provider " + provider)
|
||||
|
||||
|
|
Loading…
Reference in a new issue