| 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 22 matching lines...) Expand all Loading... |
| 33 import org.webrtc.DataChannel; | 33 import org.webrtc.DataChannel; |
| 34 import org.webrtc.EglBase; | 34 import org.webrtc.EglBase; |
| 35 import org.webrtc.IceCandidate; | 35 import org.webrtc.IceCandidate; |
| 36 import org.webrtc.Logging; | 36 import org.webrtc.Logging; |
| 37 import org.webrtc.MediaConstraints; | 37 import org.webrtc.MediaConstraints; |
| 38 import org.webrtc.MediaStream; | 38 import org.webrtc.MediaStream; |
| 39 import org.webrtc.PeerConnection; | 39 import org.webrtc.PeerConnection; |
| 40 import org.webrtc.PeerConnection.IceConnectionState; | 40 import org.webrtc.PeerConnection.IceConnectionState; |
| 41 import org.webrtc.PeerConnectionFactory; | 41 import org.webrtc.PeerConnectionFactory; |
| 42 import org.webrtc.RtpParameters; | 42 import org.webrtc.RtpParameters; |
| 43 import org.webrtc.RtpReceiver; |
| 43 import org.webrtc.RtpSender; | 44 import org.webrtc.RtpSender; |
| 44 import org.webrtc.SdpObserver; | 45 import org.webrtc.SdpObserver; |
| 45 import org.webrtc.SessionDescription; | 46 import org.webrtc.SessionDescription; |
| 46 import org.webrtc.StatsObserver; | 47 import org.webrtc.StatsObserver; |
| 47 import org.webrtc.StatsReport; | 48 import org.webrtc.StatsReport; |
| 48 import org.webrtc.VideoCapturer; | 49 import org.webrtc.VideoCapturer; |
| 49 import org.webrtc.VideoRenderer; | 50 import org.webrtc.VideoRenderer; |
| 50 import org.webrtc.VideoSource; | 51 import org.webrtc.VideoSource; |
| 51 import org.webrtc.VideoTrack; | 52 import org.webrtc.VideoTrack; |
| 52 import org.webrtc.voiceengine.WebRtcAudioManager; | 53 import org.webrtc.voiceengine.WebRtcAudioManager; |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 @Override | 1078 @Override |
| 1078 public void onDataChannel(final DataChannel dc) { | 1079 public void onDataChannel(final DataChannel dc) { |
| 1079 reportError("AppRTC doesn't use data channels, but got: " + dc.label() + "
anyway!"); | 1080 reportError("AppRTC doesn't use data channels, but got: " + dc.label() + "
anyway!"); |
| 1080 } | 1081 } |
| 1081 | 1082 |
| 1082 @Override | 1083 @Override |
| 1083 public void onRenegotiationNeeded() { | 1084 public void onRenegotiationNeeded() { |
| 1084 // No need to do anything; AppRTC follows a pre-agreed-upon | 1085 // No need to do anything; AppRTC follows a pre-agreed-upon |
| 1085 // signaling/negotiation protocol. | 1086 // signaling/negotiation protocol. |
| 1086 } | 1087 } |
| 1088 |
| 1089 @Override |
| 1090 public void onAddTrack(final RtpReceiver receiver, final MediaStream[] media
Streams) {} |
| 1087 } | 1091 } |
| 1088 | 1092 |
| 1089 // Implementation detail: handle offer creation/signaling and answer setting, | 1093 // Implementation detail: handle offer creation/signaling and answer setting, |
| 1090 // as well as adding remote ICE candidates once the answer SDP is set. | 1094 // as well as adding remote ICE candidates once the answer SDP is set. |
| 1091 private class SDPObserver implements SdpObserver { | 1095 private class SDPObserver implements SdpObserver { |
| 1092 @Override | 1096 @Override |
| 1093 public void onCreateSuccess(final SessionDescription origSdp) { | 1097 public void onCreateSuccess(final SessionDescription origSdp) { |
| 1094 if (localSdp != null) { | 1098 if (localSdp != null) { |
| 1095 reportError("Multiple SDP create."); | 1099 reportError("Multiple SDP create."); |
| 1096 return; | 1100 return; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 public void onCreateFailure(final String error) { | 1163 public void onCreateFailure(final String error) { |
| 1160 reportError("createSDP error: " + error); | 1164 reportError("createSDP error: " + error); |
| 1161 } | 1165 } |
| 1162 | 1166 |
| 1163 @Override | 1167 @Override |
| 1164 public void onSetFailure(final String error) { | 1168 public void onSetFailure(final String error) { |
| 1165 reportError("setSDP error: " + error); | 1169 reportError("setSDP error: " + error); |
| 1166 } | 1170 } |
| 1167 } | 1171 } |
| 1168 } | 1172 } |
| OLD | NEW |