Merge RTCConfiguration with RTCMediaConstraints in Java/Obj-C wrappers.
The intention of SetConfiguration is that it modifies the configuration, while keeping the constraints passed into CreatePeerConnection. Right now that's now happening. See bug for more explanation. BUG=webrtc:6942 Review-Url: https://codereview.webrtc.org/2603653002 Cr-Commit-Position: refs/heads/master@{#15974}
This commit is contained in:
@ -209,7 +209,9 @@ public class PeerConnection {
|
||||
|
||||
public native void setRemoteDescription(SdpObserver observer, SessionDescription sdp);
|
||||
|
||||
public native boolean setConfiguration(RTCConfiguration config);
|
||||
public boolean setConfiguration(RTCConfiguration config) {
|
||||
return nativeSetConfiguration(config, nativeObserver);
|
||||
}
|
||||
|
||||
public boolean addIceCandidate(IceCandidate candidate) {
|
||||
return nativeAddIceCandidate(candidate.sdpMid, candidate.sdpMLineIndex, candidate.sdp);
|
||||
@ -311,6 +313,8 @@ public class PeerConnection {
|
||||
|
||||
private static native void freeObserver(long nativeObserver);
|
||||
|
||||
public native boolean nativeSetConfiguration(RTCConfiguration config, long nativeObserver);
|
||||
|
||||
private native boolean nativeAddIceCandidate(
|
||||
String sdpMid, int sdpMLineIndex, String iceCandidateSdp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user