OLD | NEW |
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 Loading... |
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 changed to " + receiving); |
| 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 Loading... |
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 } |
OLD | NEW |