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

Side by Side Diff: webrtc/sdk/android/api/org/webrtc/PeerConnection.java

Issue 2767643002: Enable the Java wrapper to load different .so library.
Patch Set: Hacky version. Created 3 years, 7 months 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/PeerConnectionFactory.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 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 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
11 package org.webrtc; 11 package org.webrtc;
12 12
13 import java.util.Collections; 13 import java.util.Collections;
14 import java.util.LinkedList; 14 import java.util.LinkedList;
15 import java.util.List; 15 import java.util.List;
16 16
17 /** 17 /**
18 * Java-land version of the PeerConnection APIs; wraps the C++ API 18 * Java-land version of the PeerConnection APIs; wraps the C++ API
19 * http://www.webrtc.org/reference/native-apis, which in turn is inspired by the 19 * http://www.webrtc.org/reference/native-apis, which in turn is inspired by the
20 * JS APIs: http://dev.w3.org/2011/webrtc/editor/webrtc.html and 20 * JS APIs: http://dev.w3.org/2011/webrtc/editor/webrtc.html and
21 * http://www.w3.org/TR/mediacapture-streams/ 21 * http://www.w3.org/TR/mediacapture-streams/
22 */ 22 */
23 public class PeerConnection { 23 public class PeerConnection {
24 static {
25 System.loadLibrary("jingle_peerconnection_so");
26 }
27 24
28 /** Tracks PeerConnectionInterface::IceGatheringState */ 25 /** Tracks PeerConnectionInterface::IceGatheringState */
29 public enum IceGatheringState { NEW, GATHERING, COMPLETE } 26 public enum IceGatheringState { NEW, GATHERING, COMPLETE }
30 27
31 /** Tracks PeerConnectionInterface::IceConnectionState */ 28 /** Tracks PeerConnectionInterface::IceConnectionState */
32 public enum IceConnectionState { 29 public enum IceConnectionState {
33 NEW, 30 NEW,
34 CHECKING, 31 CHECKING,
35 CONNECTED, 32 CONNECTED,
36 COMPLETED, 33 COMPLETED,
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 private native RtpSender nativeCreateSender(String kind, String stream_id); 340 private native RtpSender nativeCreateSender(String kind, String stream_id);
344 341
345 private native List<RtpSender> nativeGetSenders(); 342 private native List<RtpSender> nativeGetSenders();
346 343
347 private native List<RtpReceiver> nativeGetReceivers(); 344 private native List<RtpReceiver> nativeGetReceivers();
348 345
349 private native boolean nativeStartRtcEventLog(int file_descriptor, int max_siz e_bytes); 346 private native boolean nativeStartRtcEventLog(int file_descriptor, int max_siz e_bytes);
350 347
351 private native void nativeStopRtcEventLog(); 348 private native void nativeStopRtcEventLog();
352 } 349 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/PeerConnectionFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698