OLD | NEW |
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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 public void onDataChannel(final DataChannel dc) { | 994 public void onDataChannel(final DataChannel dc) { |
995 reportError("AppRTC doesn't use data channels, but got: " + dc.label() | 995 reportError("AppRTC doesn't use data channels, but got: " + dc.label() |
996 + " anyway!"); | 996 + " anyway!"); |
997 } | 997 } |
998 | 998 |
999 @Override | 999 @Override |
1000 public void onRenegotiationNeeded() { | 1000 public void onRenegotiationNeeded() { |
1001 // No need to do anything; AppRTC follows a pre-agreed-upon | 1001 // No need to do anything; AppRTC follows a pre-agreed-upon |
1002 // signaling/negotiation protocol. | 1002 // signaling/negotiation protocol. |
1003 } | 1003 } |
1004 | |
1005 @Override | |
1006 public void onFirstMediaPacketReceived() { | |
1007 } | |
1008 } | 1004 } |
1009 | 1005 |
1010 // Implementation detail: handle offer creation/signaling and answer setting, | 1006 // Implementation detail: handle offer creation/signaling and answer setting, |
1011 // as well as adding remote ICE candidates once the answer SDP is set. | 1007 // as well as adding remote ICE candidates once the answer SDP is set. |
1012 private class SDPObserver implements SdpObserver { | 1008 private class SDPObserver implements SdpObserver { |
1013 @Override | 1009 @Override |
1014 public void onCreateSuccess(final SessionDescription origSdp) { | 1010 public void onCreateSuccess(final SessionDescription origSdp) { |
1015 if (localSdp != null) { | 1011 if (localSdp != null) { |
1016 reportError("Multiple SDP create."); | 1012 reportError("Multiple SDP create."); |
1017 return; | 1013 return; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 public void onCreateFailure(final String error) { | 1077 public void onCreateFailure(final String error) { |
1082 reportError("createSDP error: " + error); | 1078 reportError("createSDP error: " + error); |
1083 } | 1079 } |
1084 | 1080 |
1085 @Override | 1081 @Override |
1086 public void onSetFailure(final String error) { | 1082 public void onSetFailure(final String error) { |
1087 reportError("setSDP error: " + error); | 1083 reportError("setSDP error: " + error); |
1088 } | 1084 } |
1089 } | 1085 } |
1090 } | 1086 } |
OLD | NEW |