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

Side by Side Diff: webrtc/api/java/src/org/webrtc/RtpParameters.java

Issue 1885473004: Adding codecs to the RtpParameters returned by an RtpSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Responding to skvlad@ feedback. Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 package org.webrtc; 11 package org.webrtc;
12 12
13 import java.util.List; 13 import java.util.List;
14 import java.util.LinkedList; 14 import java.util.LinkedList;
15 15
16 /** 16 /**
17 * The parameters for an {@code RtpSender}, as defined in 17 * The parameters for an {@code RtpSender}, as defined in
18 * http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface. 18 * http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface.
19 */ 19 */
20 public class RtpParameters { 20 public class RtpParameters {
21 public static class Encoding { 21 public static class Encoding {
22 public boolean active = true; 22 public boolean active = true;
23 // A null value means "no maximum bitrate". 23 // A null value means "no maximum bitrate".
24 public Integer maxBitrateBps; 24 public Integer maxBitrateBps;
25 } 25 }
26 26
27 public static class Codec {
28 int payloadType;
29 String mimeType;
30 int clockRate;
31 int channels = 1;
32 }
33
27 public final LinkedList<Encoding> encodings; 34 public final LinkedList<Encoding> encodings;
35 public final LinkedList<Codec> codecs;
28 36
29 public RtpParameters() { 37 public RtpParameters() {
30 encodings = new LinkedList<Encoding>(); 38 encodings = new LinkedList<Encoding>();
39 codecs = new LinkedList<Codec>();
31 } 40 }
32 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698