Expose restartIce in SDK for Android.
PC.restartIce() is part of perfect negotiation algorithm. Bug: webrtc:12609 Change-Id: I21a0f8637e92e13ee2653ef477d0cd22a32bf9c6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/212645 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33589}
This commit is contained in:

committed by
Commit Bot

parent
3cccdb8c24
commit
d8d9ac3962
@ -866,6 +866,13 @@ public class PeerConnection {
|
||||
nativeSetRemoteDescription(observer, sdp);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells the PeerConnection that ICE should be restarted.
|
||||
*/
|
||||
public void restartIce() {
|
||||
nativeRestartIce();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables/disables playout of received audio streams. Enabled by default.
|
||||
*
|
||||
@ -1242,6 +1249,7 @@ public class PeerConnection {
|
||||
private native void nativeCreateAnswer(SdpObserver observer, MediaConstraints constraints);
|
||||
private native void nativeSetLocalDescription(SdpObserver observer, SessionDescription sdp);
|
||||
private native void nativeSetRemoteDescription(SdpObserver observer, SessionDescription sdp);
|
||||
private native void nativeRestartIce();
|
||||
private native void nativeSetAudioPlayout(boolean playout);
|
||||
private native void nativeSetAudioRecording(boolean recording);
|
||||
private native boolean nativeSetBitrate(Integer min, Integer current, Integer max);
|
||||
|
@ -588,6 +588,11 @@ static void JNI_PeerConnection_SetRemoteDescription(
|
||||
observer, JavaToNativeSessionDescription(jni, j_sdp).release());
|
||||
}
|
||||
|
||||
static void JNI_PeerConnection_RestartIce(JNIEnv* jni,
|
||||
const JavaParamRef<jobject>& j_pc) {
|
||||
ExtractNativePC(jni, j_pc)->RestartIce();
|
||||
}
|
||||
|
||||
static void JNI_PeerConnection_SetAudioPlayout(
|
||||
JNIEnv* jni,
|
||||
const JavaParamRef<jobject>& j_pc,
|
||||
|
Reference in New Issue
Block a user