Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: webrtc/api/java/src/org/webrtc/RtpReceiver.java

Issue 1917193008: Adding getParameters/setParameters APIs to RtpReceiver. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: objc compile errors Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/java/jni/peerconnection_jni.cc ('k') | webrtc/api/mediastreamprovider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « webrtc/api/java/jni/peerconnection_jni.cc ('k') | webrtc/api/mediastreamprovider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698