Index: webrtc/api/java/src/org/webrtc/RtpReceiver.java |
diff --git a/webrtc/api/java/src/org/webrtc/RtpReceiver.java b/webrtc/api/java/src/org/webrtc/RtpReceiver.java |
index 04a5d2a37f779954f1c99260b67a925271af7e58..1c4eef3115d5a845d66e5da285c4ab3da32bec52 100644 |
--- a/webrtc/api/java/src/org/webrtc/RtpReceiver.java |
+++ b/webrtc/api/java/src/org/webrtc/RtpReceiver.java |
@@ -27,6 +27,14 @@ public class RtpReceiver { |
return cachedTrack; |
} |
+ public boolean setParameters(RtpParameters parameters) { |
+ return nativeSetParameters(nativeRtpReceiver, parameters); |
+ } |
+ |
+ public RtpParameters getParameters() { |
+ return nativeGetParameters(nativeRtpReceiver); |
+ } |
+ |
public String id() { |
return nativeId(nativeRtpReceiver); |
} |
@@ -40,6 +48,11 @@ public class RtpReceiver { |
// Will be released in dispose(). |
private static native long nativeGetTrack(long nativeRtpReceiver); |
+ private static native boolean nativeSetParameters(long nativeRtpReceiver, |
+ RtpParameters parameters); |
+ |
+ private static native RtpParameters nativeGetParameters(long nativeRtpReceiver); |
+ |
private static native String nativeId(long nativeRtpReceiver); |
private static native void free(long nativeRtpReceiver); |