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

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

Issue 2489213002: Set videoCapturerStopped when PeerConnectionClient stopped (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2014 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 audioSource.dispose(); 533 audioSource.dispose();
534 audioSource = null; 534 audioSource = null;
535 } 535 }
536 Log.d(TAG, "Stopping capture."); 536 Log.d(TAG, "Stopping capture.");
537 if (videoCapturer != null) { 537 if (videoCapturer != null) {
538 try { 538 try {
539 videoCapturer.stopCapture(); 539 videoCapturer.stopCapture();
540 } catch (InterruptedException e) { 540 } catch (InterruptedException e) {
541 throw new RuntimeException(e); 541 throw new RuntimeException(e);
542 } 542 }
543 videoCapturerStopped = true;
543 videoCapturer.dispose(); 544 videoCapturer.dispose();
544 videoCapturer = null; 545 videoCapturer = null;
545 } 546 }
546 Log.d(TAG, "Closing video source."); 547 Log.d(TAG, "Closing video source.");
547 if (videoSource != null) { 548 if (videoSource != null) {
548 videoSource.dispose(); 549 videoSource.dispose();
549 videoSource = null; 550 videoSource = null;
550 } 551 }
551 Log.d(TAG, "Closing peer connection factory."); 552 Log.d(TAG, "Closing peer connection factory.");
552 if (factory != null) { 553 if (factory != null) {
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 public void onCreateFailure(final String error) { 1159 public void onCreateFailure(final String error) {
1159 reportError("createSDP error: " + error); 1160 reportError("createSDP error: " + error);
1160 } 1161 }
1161 1162
1162 @Override 1163 @Override
1163 public void onSetFailure(final String error) { 1164 public void onSetFailure(final String error) {
1164 reportError("setSDP error: " + error); 1165 reportError("setSDP error: " + error);
1165 } 1166 }
1166 } 1167 }
1167 } 1168 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698