| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 import org.webrtc.VideoFileRenderer; | 57 import org.webrtc.VideoFileRenderer; |
| 58 import org.webrtc.VideoRenderer; | 58 import org.webrtc.VideoRenderer; |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * Activity for peer connection call setup, call waiting | 61 * Activity for peer connection call setup, call waiting |
| 62 * and call view. | 62 * and call view. |
| 63 */ | 63 */ |
| 64 public class CallActivity extends Activity implements AppRTCClient.SignalingEven
ts, | 64 public class CallActivity extends Activity implements AppRTCClient.SignalingEven
ts, |
| 65 PeerConnectionClient.PeerC
onnectionEvents, | 65 PeerConnectionClient.PeerC
onnectionEvents, |
| 66 CallFragment.OnCallEvents
{ | 66 CallFragment.OnCallEvents
{ |
| 67 // Fix for devices running old Android versions not finding the libraries. |
| 68 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6751 |
| 69 static { |
| 70 System.loadLibrary("c++_shared"); |
| 71 System.loadLibrary("boringssl.cr"); |
| 72 System.loadLibrary("protobuf_lite.cr"); |
| 73 } |
| 74 |
| 67 public static final String EXTRA_ROOMID = "org.appspot.apprtc.ROOMID"; | 75 public static final String EXTRA_ROOMID = "org.appspot.apprtc.ROOMID"; |
| 68 public static final String EXTRA_LOOPBACK = "org.appspot.apprtc.LOOPBACK"; | 76 public static final String EXTRA_LOOPBACK = "org.appspot.apprtc.LOOPBACK"; |
| 69 public static final String EXTRA_VIDEO_CALL = "org.appspot.apprtc.VIDEO_CALL"; | 77 public static final String EXTRA_VIDEO_CALL = "org.appspot.apprtc.VIDEO_CALL"; |
| 70 public static final String EXTRA_SCREENCAPTURE = "org.appspot.apprtc.SCREENCAP
TURE"; | 78 public static final String EXTRA_SCREENCAPTURE = "org.appspot.apprtc.SCREENCAP
TURE"; |
| 71 public static final String EXTRA_CAMERA2 = "org.appspot.apprtc.CAMERA2"; | 79 public static final String EXTRA_CAMERA2 = "org.appspot.apprtc.CAMERA2"; |
| 72 public static final String EXTRA_VIDEO_WIDTH = "org.appspot.apprtc.VIDEO_WIDTH
"; | 80 public static final String EXTRA_VIDEO_WIDTH = "org.appspot.apprtc.VIDEO_WIDTH
"; |
| 73 public static final String EXTRA_VIDEO_HEIGHT = "org.appspot.apprtc.VIDEO_HEIG
HT"; | 81 public static final String EXTRA_VIDEO_HEIGHT = "org.appspot.apprtc.VIDEO_HEIG
HT"; |
| 74 public static final String EXTRA_VIDEO_FPS = "org.appspot.apprtc.VIDEO_FPS"; | 82 public static final String EXTRA_VIDEO_FPS = "org.appspot.apprtc.VIDEO_FPS"; |
| 75 public static final String EXTRA_VIDEO_CAPTUREQUALITYSLIDER_ENABLED = | 83 public static final String EXTRA_VIDEO_CAPTUREQUALITYSLIDER_ENABLED = |
| 76 "org.appsopt.apprtc.VIDEO_CAPTUREQUALITYSLIDER"; | 84 "org.appsopt.apprtc.VIDEO_CAPTUREQUALITYSLIDER"; |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 } | 897 } |
| 890 } | 898 } |
| 891 }); | 899 }); |
| 892 } | 900 } |
| 893 | 901 |
| 894 @Override | 902 @Override |
| 895 public void onPeerConnectionError(final String description) { | 903 public void onPeerConnectionError(final String description) { |
| 896 reportError(description); | 904 reportError(description); |
| 897 } | 905 } |
| 898 } | 906 } |
| OLD | NEW |