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

Side by Side Diff: talk/examples/android/src/org/appspot/apprtc/PeerConnectionClient.java

Issue 1207563002: Add flakiness check if there is no received packets in a certain period. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments and add tests Created 5 years, 5 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 * libjingle 2 * libjingle
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 }); 891 });
892 } 892 }
893 893
894 @Override 894 @Override
895 public void onIceGatheringChange( 895 public void onIceGatheringChange(
896 PeerConnection.IceGatheringState newState) { 896 PeerConnection.IceGatheringState newState) {
897 Log.d(TAG, "IceGatheringState: " + newState); 897 Log.d(TAG, "IceGatheringState: " + newState);
898 } 898 }
899 899
900 @Override 900 @Override
901 public void onIceConnectionReceivingChange(boolean receiving) {
902 Log.d(TAG, "IceConnectionReceiving changes to " + receiving);
pthatcher1 2015/07/07 20:49:55 changes to => changed to
honghaiz3 2015/08/05 23:56:57 Done.
903 }
904
905 @Override
901 public void onAddStream(final MediaStream stream){ 906 public void onAddStream(final MediaStream stream){
902 executor.execute(new Runnable() { 907 executor.execute(new Runnable() {
903 @Override 908 @Override
904 public void run() { 909 public void run() {
905 if (peerConnection == null || isError) { 910 if (peerConnection == null || isError) {
906 return; 911 return;
907 } 912 }
908 if (stream.audioTracks.size() > 1 || stream.videoTracks.size() > 1) { 913 if (stream.audioTracks.size() > 1 || stream.videoTracks.size() > 1) {
909 reportError("Weird-looking stream: " + stream); 914 reportError("Weird-looking stream: " + stream);
910 return; 915 return;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 public void onCreateFailure(final String error) { 1024 public void onCreateFailure(final String error) {
1020 reportError("createSDP error: " + error); 1025 reportError("createSDP error: " + error);
1021 } 1026 }
1022 1027
1023 @Override 1028 @Override
1024 public void onSetFailure(final String error) { 1029 public void onSetFailure(final String error) {
1025 reportError("setSDP error: " + error); 1030 reportError("setSDP error: " + error);
1026 } 1031 }
1027 } 1032 }
1028 } 1033 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698