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

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

Issue 1819553002: Added the JNI interface to get and set RtpParameters and the maximum bitrate limits. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review feedback Created 4 years, 9 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/src/org/webrtc/RtpParameters.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/java/src/org/webrtc/RtpSender.java
diff --git a/webrtc/api/java/src/org/webrtc/RtpSender.java b/webrtc/api/java/src/org/webrtc/RtpSender.java
index 3950a59a2d33d402b229ede2a56bcb27d81c3750..2c094ac0d72fa9e5720648a07cf86f2e72d14207 100644
--- a/webrtc/api/java/src/org/webrtc/RtpSender.java
+++ b/webrtc/api/java/src/org/webrtc/RtpSender.java
@@ -46,6 +46,14 @@ public class RtpSender {
return cachedTrack;
}
+ public boolean setParameters(RtpParameters parameters) {
+ return nativeSetParameters(nativeRtpSender, parameters);
+ }
+
+ public RtpParameters getParameters() {
+ return nativeGetParameters(nativeRtpSender);
+ }
+
public String id() {
return nativeId(nativeRtpSender);
}
@@ -64,6 +72,11 @@ public class RtpSender {
// Will be released in dispose() or setTrack().
private static native long nativeGetTrack(long nativeRtpSender);
+ private static native boolean nativeSetParameters(long nativeRtpSender,
+ RtpParameters parameters);
+
+ private static native RtpParameters nativeGetParameters(long nativeRtpSender);
+
private static native String nativeId(long nativeRtpSender);
private static native void free(long nativeRtpSender);
« no previous file with comments | « webrtc/api/java/src/org/webrtc/RtpParameters.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698