Android, AppRTCDemo: Fixes java exception due to JSON for ice using "urls" instead of "url".
BUG=2952 TEST=Manual TBR=braveyao Review URL: https://webrtc-codereview.appspot.com/9099004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5605 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
bf88eccf33
commit
79a1cff65a
@ -401,7 +401,7 @@ public class AppRTCClient {
|
||||
new LinkedList<PeerConnection.IceServer>();
|
||||
for (int i = 0; i < servers.length(); ++i) {
|
||||
JSONObject server = servers.getJSONObject(i);
|
||||
String url = server.getString("url");
|
||||
String url = server.getString("urls");
|
||||
String credential =
|
||||
server.has("credential") ? server.getString("credential") : "";
|
||||
ret.add(new PeerConnection.IceServer(url, "", credential));
|
||||
|
Loading…
x
Reference in New Issue
Block a user