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.appspot.apprtc.AppRTCClient.SignalingParameters; | 33 import org.appspot.apprtc.AppRTCClient.SignalingParameters; |
34 import org.webrtc.AudioSource; | 34 import org.webrtc.AudioSource; |
35 import org.webrtc.AudioTrack; | 35 import org.webrtc.AudioTrack; |
36 import org.webrtc.CameraVideoCapturer; | 36 import org.webrtc.CameraVideoCapturer; |
37 import org.webrtc.DataChannel; | 37 import org.webrtc.DataChannel; |
38 import org.webrtc.EglBase; | 38 import org.webrtc.EglBase; |
39 import org.webrtc.IceCandidate; | 39 import org.webrtc.IceCandidate; |
40 import org.webrtc.Logging; | 40 import org.webrtc.Logging; |
41 import org.webrtc.MediaConstraints; | 41 import org.webrtc.MediaConstraints; |
42 import org.webrtc.MediaStream; | 42 import org.webrtc.MediaStream; |
| 43 import org.webrtc.MediaStreamTrack; |
43 import org.webrtc.PeerConnection; | 44 import org.webrtc.PeerConnection; |
44 import org.webrtc.PeerConnection.IceConnectionState; | 45 import org.webrtc.PeerConnection.IceConnectionState; |
45 import org.webrtc.PeerConnectionFactory; | 46 import org.webrtc.PeerConnectionFactory; |
46 import org.webrtc.RtpParameters; | 47 import org.webrtc.RtpParameters; |
47 import org.webrtc.RtpReceiver; | 48 import org.webrtc.RtpReceiver; |
48 import org.webrtc.RtpSender; | 49 import org.webrtc.RtpSender; |
49 import org.webrtc.SdpObserver; | 50 import org.webrtc.SdpObserver; |
50 import org.webrtc.SessionDescription; | 51 import org.webrtc.SessionDescription; |
51 import org.webrtc.StatsObserver; | 52 import org.webrtc.StatsObserver; |
52 import org.webrtc.StatsReport; | 53 import org.webrtc.StatsReport; |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 } | 1271 } |
1271 | 1272 |
1272 @Override | 1273 @Override |
1273 public void onRenegotiationNeeded() { | 1274 public void onRenegotiationNeeded() { |
1274 // No need to do anything; AppRTC follows a pre-agreed-upon | 1275 // No need to do anything; AppRTC follows a pre-agreed-upon |
1275 // signaling/negotiation protocol. | 1276 // signaling/negotiation protocol. |
1276 } | 1277 } |
1277 | 1278 |
1278 @Override | 1279 @Override |
1279 public void onAddTrack(final RtpReceiver receiver, final MediaStream[] media
Streams) {} | 1280 public void onAddTrack(final RtpReceiver receiver, final MediaStream[] media
Streams) {} |
| 1281 |
| 1282 @Override |
| 1283 public void onRemoveTrack(final RtpReceiver receiver, final MediaStream[] me
diaStreams) {} |
1280 } | 1284 } |
1281 | 1285 |
1282 // Implementation detail: handle offer creation/signaling and answer setting, | 1286 // Implementation detail: handle offer creation/signaling and answer setting, |
1283 // as well as adding remote ICE candidates once the answer SDP is set. | 1287 // as well as adding remote ICE candidates once the answer SDP is set. |
1284 private class SDPObserver implements SdpObserver { | 1288 private class SDPObserver implements SdpObserver { |
1285 @Override | 1289 @Override |
1286 public void onCreateSuccess(final SessionDescription origSdp) { | 1290 public void onCreateSuccess(final SessionDescription origSdp) { |
1287 if (localSdp != null) { | 1291 if (localSdp != null) { |
1288 reportError("Multiple SDP create."); | 1292 reportError("Multiple SDP create."); |
1289 return; | 1293 return; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 public void onCreateFailure(final String error) { | 1356 public void onCreateFailure(final String error) { |
1353 reportError("createSDP error: " + error); | 1357 reportError("createSDP error: " + error); |
1354 } | 1358 } |
1355 | 1359 |
1356 @Override | 1360 @Override |
1357 public void onSetFailure(final String error) { | 1361 public void onSetFailure(final String error) { |
1358 reportError("setSDP error: " + error); | 1362 reportError("setSDP error: " + error); |
1359 } | 1363 } |
1360 } | 1364 } |
1361 } | 1365 } |
OLD | NEW |