Default to Google's STUN server also when Media NAT Traversal protocol is ICE

This commit is contained in:
Juha Heinanen
2020-11-16 16:10:36 +02:00
parent ffe4280c0d
commit d7156898a3
3 changed files with 8 additions and 6 deletions

View File

@ -100,6 +100,8 @@ class AccountActivity : AppCompatActivity() {
else if ((mediaNat == "stun") &&
(stunServer.text.startsWith("turn") || (stunServer.text.toString() == "")))
stunServer.setText(resources.getString(R.string.stun_server_default))
else if ((mediaNat == "ice") && (stunServer.text.toString() == ""))
stunServer.setText(resources.getString(R.string.stun_server_default))
else if (mediaNat == "") {
stunServer.setText("")
stunUser.setText("")

View File

@ -131,9 +131,9 @@
</string>
<string name="stun_server">STUN/TURN-palvelin</string>
<string name="stun_server_help">STUN/TURN-palvelimen muotoa \'kaava:palvelin[:portti]\'
oleva URI, missä kaava on \'stun\', \'stuns\', \'turn\' tai \'turns\'. STUN-palvelimen
oletusarvo \'stun:stun.l.google.com:19302\', joka osoittaa Google:n julkiseen STUN-palvelimeen.
TURN-palvelimella ei ole oletusarvoa.
oleva URI, missä kaava on \'stun\', \'stuns\', \'turn\' tai \'turns\'. Oletus STUN-palvelin
STUN ja ICE protokollille on \'stun:stun.l.google.com:19302\', joka osoittaa Google:n
julkiseen STUN-palvelimeen. TURN-palvelimella ei ole oletusarvoa.
</string>
<string name="stun_server_uri">STUN/TURN-palvelimen URI</string>
<string name="invalid_stun_server">Virheellinen STUN/TURN-palvelimen URI \'%1$s\'</string>

View File

@ -126,9 +126,9 @@
</string>
<string name="stun_server">STUN/TURN Server</string>
<string name="stun_server_help">A STUN/TURN Server URI of form scheme:host[:port], where scheme
is \'stun\', \'stuns\', \'turn\', or \'turns\'. Factory default STUN server is
\'stun:stun.l.google.com:19302\', pointing to public Google STUN server. There is no
factory default TURN server.
is \'stun\', \'stuns\', \'turn\', or \'turns\'. Factory default STUN Server for STUN and
ICE protocols is \'stun:stun.l.google.com:19302\' pointing to public Google STUN server.
There is no factory default TURN server.
</string>
<string name="stun_server_uri">STUN/TURN Server URI</string>
<string name="invalid_stun_server">Invalid STUN/TURN Server URI \'%1$s\'</string>