Add json support to ICECredentialType

This allows the interface to be slightly closer to
upstream interfaces.
This commit is contained in:
Woodrow Douglass
2022-05-05 16:35:36 -04:00
committed by Sean DuBois
parent cecdbc9980
commit c9aaf819bc
8 changed files with 309 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ func TestConfiguration_getICEServers(t *testing.T) {
func TestConfigurationJSON(t *testing.T) {
j := `{
"iceServers": [{"URLs": ["turn:turn.example.org"],
"iceServers": [{"urls": ["turn:turn.example.org"],
"username": "jch",
"credential": "topsecret"
}],