renyuzhuo / WebRTC-Android-Learn

AppRTCMobile——WebRTC Android
https://renyuzhuo.cn/#/issues/4
75 stars 23 forks source link

Trying to find Turn servers in pc_config always failing #10

Open appunnicer13 opened 7 years ago

appunnicer13 commented 7 years ago

in RoomParametersFetcher.java ,
LinkedList iceServers = iceServersFromPCConfigJSON(roomJson.getString("pc_config")); boolean isTurnPresent = false; for (PeerConnection.IceServer server : iceServers) { Log.d(TAG, "IceServer: " + server); if (server.uri.startsWith("turn:")) { isTurnPresent = true; break; } }

Trying to find turn servers within pc_conifg, if not found falling back to ice providers . Since I think changes came in apprtc , they moved turn servers as well as stun servers (which is not accounted for) in to "turn_server_override" parameter. Please update the code to account for the above as well.

appunnicer13 commented 7 years ago

I have done a pull request to #11 solve this issue.

Raj123456788 commented 7 years ago

Thanks for the Update. Is there a way to improve the frame rate for 1080p?