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

Side by Side Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java

Issue 2306433002: Add option to set maximum video encoder bitrate to AppRTCDemo. (Closed)
Patch Set: Created 4 years, 3 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 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 @Override 651 @Override
652 public void run() { 652 public void run() {
653 if (appRtcClient != null) { 653 if (appRtcClient != null) {
654 logAndToast("Sending " + sdp.type + ", delay=" + delta + "ms"); 654 logAndToast("Sending " + sdp.type + ", delay=" + delta + "ms");
655 if (signalingParameters.initiator) { 655 if (signalingParameters.initiator) {
656 appRtcClient.sendOfferSdp(sdp); 656 appRtcClient.sendOfferSdp(sdp);
657 } else { 657 } else {
658 appRtcClient.sendAnswerSdp(sdp); 658 appRtcClient.sendAnswerSdp(sdp);
659 } 659 }
660 } 660 }
661 if (peerConnectionParameters.videoMaxBitrate > 0) {
662 Log.d(TAG, "Set video maximum bitrate: " + peerConnectionParameters.vi deoMaxBitrate);
663 peerConnectionClient.setVideoMaxBitrate(peerConnectionParameters.video MaxBitrate);
664 }
661 } 665 }
662 }); 666 });
663 } 667 }
664 668
665 @Override 669 @Override
666 public void onIceCandidate(final IceCandidate candidate) { 670 public void onIceCandidate(final IceCandidate candidate) {
667 runOnUiThread(new Runnable() { 671 runOnUiThread(new Runnable() {
668 @Override 672 @Override
669 public void run() { 673 public void run() {
670 if (appRtcClient != null) { 674 if (appRtcClient != null) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 } 729 }
726 } 730 }
727 }); 731 });
728 } 732 }
729 733
730 @Override 734 @Override
731 public void onPeerConnectionError(final String description) { 735 public void onPeerConnectionError(final String description) {
732 reportError(description); 736 reportError(description);
733 } 737 }
734 } 738 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698