Example 2 does not include the credentialType attribute. It should look like this: { urls: "turn:turn.example.org", username: "user", credential: "myPassword", credentialType: "password"}