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

Side by Side Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java

Issue 2513723002: Created a java wrapper for the callback OnAddTrack to PeerConnection.Observer (Closed)
Patch Set: Created a java wrapper for the callback OnAddTrack to PeerConnection.Observer Created 4 years 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
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/PeerConnection.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 import org.webrtc.DataChannel; 34 import org.webrtc.DataChannel;
35 import org.webrtc.EglBase; 35 import org.webrtc.EglBase;
36 import org.webrtc.IceCandidate; 36 import org.webrtc.IceCandidate;
37 import org.webrtc.Logging; 37 import org.webrtc.Logging;
38 import org.webrtc.MediaConstraints; 38 import org.webrtc.MediaConstraints;
39 import org.webrtc.MediaStream; 39 import org.webrtc.MediaStream;
40 import org.webrtc.PeerConnection; 40 import org.webrtc.PeerConnection;
41 import org.webrtc.PeerConnection.IceConnectionState; 41 import org.webrtc.PeerConnection.IceConnectionState;
42 import org.webrtc.PeerConnectionFactory; 42 import org.webrtc.PeerConnectionFactory;
43 import org.webrtc.RtpParameters; 43 import org.webrtc.RtpParameters;
44 import org.webrtc.RtpReceiver;
44 import org.webrtc.RtpSender; 45 import org.webrtc.RtpSender;
45 import org.webrtc.SdpObserver; 46 import org.webrtc.SdpObserver;
46 import org.webrtc.SessionDescription; 47 import org.webrtc.SessionDescription;
47 import org.webrtc.StatsObserver; 48 import org.webrtc.StatsObserver;
48 import org.webrtc.StatsReport; 49 import org.webrtc.StatsReport;
49 import org.webrtc.VideoCapturer; 50 import org.webrtc.VideoCapturer;
50 import org.webrtc.VideoRenderer; 51 import org.webrtc.VideoRenderer;
51 import org.webrtc.VideoSource; 52 import org.webrtc.VideoSource;
52 import org.webrtc.VideoTrack; 53 import org.webrtc.VideoTrack;
53 import org.webrtc.voiceengine.WebRtcAudioManager; 54 import org.webrtc.voiceengine.WebRtcAudioManager;
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 Log.d(TAG, "Got msg: " + strData + " over " + dc); 1169 Log.d(TAG, "Got msg: " + strData + " over " + dc);
1169 } 1170 }
1170 }); 1171 });
1171 } 1172 }
1172 1173
1173 @Override 1174 @Override
1174 public void onRenegotiationNeeded() { 1175 public void onRenegotiationNeeded() {
1175 // No need to do anything; AppRTC follows a pre-agreed-upon 1176 // No need to do anything; AppRTC follows a pre-agreed-upon
1176 // signaling/negotiation protocol. 1177 // signaling/negotiation protocol.
1177 } 1178 }
1179
1180 @Override
1181 public void onAddTrack(final RtpReceiver receiver, final MediaStream[] media Streams) {}
1178 } 1182 }
1179 1183
1180 // Implementation detail: handle offer creation/signaling and answer setting, 1184 // Implementation detail: handle offer creation/signaling and answer setting,
1181 // as well as adding remote ICE candidates once the answer SDP is set. 1185 // as well as adding remote ICE candidates once the answer SDP is set.
1182 private class SDPObserver implements SdpObserver { 1186 private class SDPObserver implements SdpObserver {
1183 @Override 1187 @Override
1184 public void onCreateSuccess(final SessionDescription origSdp) { 1188 public void onCreateSuccess(final SessionDescription origSdp) {
1185 if (localSdp != null) { 1189 if (localSdp != null) {
1186 reportError("Multiple SDP create."); 1190 reportError("Multiple SDP create.");
1187 return; 1191 return;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 public void onCreateFailure(final String error) { 1254 public void onCreateFailure(final String error) {
1251 reportError("createSDP error: " + error); 1255 reportError("createSDP error: " + error);
1252 } 1256 }
1253 1257
1254 @Override 1258 @Override
1255 public void onSetFailure(final String error) { 1259 public void onSetFailure(final String error) {
1256 reportError("setSDP error: " + error); 1260 reportError("setSDP error: " + error);
1257 } 1261 }
1258 } 1262 }
1259 } 1263 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/PeerConnection.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698