OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // return to the Java frame that called code in this file, at which point it's | 52 // return to the Java frame that called code in this file, at which point it's |
53 // impossible to tell which JNI call broke). | 53 // impossible to tell which JNI call broke). |
54 | 54 |
55 #include <jni.h> | 55 #include <jni.h> |
56 #undef JNIEXPORT | 56 #undef JNIEXPORT |
57 #define JNIEXPORT __attribute__((visibility("default"))) | 57 #define JNIEXPORT __attribute__((visibility("default"))) |
58 | 58 |
59 #include <limits> | 59 #include <limits> |
60 #include <utility> | 60 #include <utility> |
61 | 61 |
| 62 #include "talk/app/webrtc/dtlsidentitystore.h" |
62 #include "talk/app/webrtc/java/jni/classreferenceholder.h" | 63 #include "talk/app/webrtc/java/jni/classreferenceholder.h" |
63 #include "talk/app/webrtc/java/jni/jni_helpers.h" | 64 #include "talk/app/webrtc/java/jni/jni_helpers.h" |
64 #include "talk/app/webrtc/java/jni/native_handle_impl.h" | 65 #include "talk/app/webrtc/java/jni/native_handle_impl.h" |
65 #include "talk/app/webrtc/dtlsidentitystore.h" | |
66 #include "talk/app/webrtc/mediaconstraintsinterface.h" | 66 #include "talk/app/webrtc/mediaconstraintsinterface.h" |
67 #include "talk/app/webrtc/peerconnectioninterface.h" | 67 #include "talk/app/webrtc/peerconnectioninterface.h" |
68 #include "talk/app/webrtc/rtpreceiverinterface.h" | 68 #include "talk/app/webrtc/rtpreceiverinterface.h" |
69 #include "talk/app/webrtc/rtpsenderinterface.h" | 69 #include "talk/app/webrtc/rtpsenderinterface.h" |
70 #include "talk/app/webrtc/videosourceinterface.h" | 70 #include "talk/app/webrtc/videosourceinterface.h" |
71 #include "talk/media/base/videocapturer.h" | |
72 #include "talk/media/base/videorenderer.h" | |
73 #include "talk/media/devices/videorendererfactory.h" | |
74 #include "talk/media/webrtc/webrtcvideodecoderfactory.h" | |
75 #include "talk/media/webrtc/webrtcvideoencoderfactory.h" | |
76 #include "webrtc/base/bind.h" | 71 #include "webrtc/base/bind.h" |
77 #include "webrtc/base/checks.h" | 72 #include "webrtc/base/checks.h" |
78 #include "webrtc/base/event_tracer.h" | 73 #include "webrtc/base/event_tracer.h" |
79 #include "webrtc/base/logging.h" | 74 #include "webrtc/base/logging.h" |
80 #include "webrtc/base/logsinks.h" | 75 #include "webrtc/base/logsinks.h" |
81 #include "webrtc/base/messagequeue.h" | 76 #include "webrtc/base/messagequeue.h" |
82 #include "webrtc/base/networkmonitor.h" | 77 #include "webrtc/base/networkmonitor.h" |
83 #include "webrtc/base/ssladapter.h" | 78 #include "webrtc/base/ssladapter.h" |
84 #include "webrtc/base/stringutils.h" | 79 #include "webrtc/base/stringutils.h" |
| 80 #include "webrtc/media/base/videocapturer.h" |
| 81 #include "webrtc/media/base/videorenderer.h" |
| 82 #include "webrtc/media/devices/videorendererfactory.h" |
| 83 #include "webrtc/media/webrtc/webrtcvideodecoderfactory.h" |
| 84 #include "webrtc/media/webrtc/webrtcvideoencoderfactory.h" |
85 #include "webrtc/system_wrappers/include/field_trial_default.h" | 85 #include "webrtc/system_wrappers/include/field_trial_default.h" |
86 #include "webrtc/system_wrappers/include/trace.h" | 86 #include "webrtc/system_wrappers/include/trace.h" |
87 #include "webrtc/voice_engine/include/voe_base.h" | 87 #include "webrtc/voice_engine/include/voe_base.h" |
88 | 88 |
89 #if defined(ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD) | 89 #if defined(ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD) |
90 #include "talk/app/webrtc/androidvideocapturer.h" | 90 #include "talk/app/webrtc/androidvideocapturer.h" |
91 #include "talk/app/webrtc/java/jni/androidmediadecoder_jni.h" | 91 #include "talk/app/webrtc/java/jni/androidmediadecoder_jni.h" |
92 #include "talk/app/webrtc/java/jni/androidmediaencoder_jni.h" | 92 #include "talk/app/webrtc/java/jni/androidmediaencoder_jni.h" |
| 93 #include "talk/app/webrtc/java/jni/androidnetworkmonitor_jni.h" |
93 #include "talk/app/webrtc/java/jni/androidvideocapturer_jni.h" | 94 #include "talk/app/webrtc/java/jni/androidvideocapturer_jni.h" |
94 #include "talk/app/webrtc/java/jni/androidnetworkmonitor_jni.h" | |
95 #include "webrtc/modules/video_render/video_render_internal.h" | 95 #include "webrtc/modules/video_render/video_render_internal.h" |
96 #include "webrtc/system_wrappers/include/logcat_trace_context.h" | 96 #include "webrtc/system_wrappers/include/logcat_trace_context.h" |
97 using webrtc::LogcatTraceContext; | 97 using webrtc::LogcatTraceContext; |
98 #endif | 98 #endif |
99 | 99 |
100 using cricket::WebRtcVideoDecoderFactory; | 100 using cricket::WebRtcVideoDecoderFactory; |
101 using cricket::WebRtcVideoEncoderFactory; | 101 using cricket::WebRtcVideoEncoderFactory; |
102 using rtc::Bind; | 102 using rtc::Bind; |
103 using rtc::Thread; | 103 using rtc::Thread; |
104 using rtc::ThreadManager; | 104 using rtc::ThreadManager; |
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 return JavaStringFromStdString( | 2148 return JavaStringFromStdString( |
2149 jni, | 2149 jni, |
2150 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); | 2150 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); |
2151 } | 2151 } |
2152 | 2152 |
2153 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { | 2153 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { |
2154 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); | 2154 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); |
2155 } | 2155 } |
2156 | 2156 |
2157 } // namespace webrtc_jni | 2157 } // namespace webrtc_jni |
OLD | NEW |