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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 | 124 |
125 public AudioSource createAudioSource(MediaConstraints constraints) { | 125 public AudioSource createAudioSource(MediaConstraints constraints) { |
126 return new AudioSource(nativeCreateAudioSource(nativeFactory, constraints)); | 126 return new AudioSource(nativeCreateAudioSource(nativeFactory, constraints)); |
127 } | 127 } |
128 | 128 |
129 public AudioTrack createAudioTrack(String id, AudioSource source) { | 129 public AudioTrack createAudioTrack(String id, AudioSource source) { |
130 return new AudioTrack(nativeCreateAudioTrack( | 130 return new AudioTrack(nativeCreateAudioTrack( |
131 nativeFactory, id, source.nativeSource)); | 131 nativeFactory, id, source.nativeSource)); |
132 } | 132 } |
133 | 133 |
134 // Starts recording an AEC dump. Ownership of the file is transfered to the | |
135 // native code. If an AEC dump is already in progress, it will be stopped and | |
136 // a new one will start using the provided file. | |
137 public boolean startAecDump(int file_descriptor) { | |
138 return nativeStartAecDump(nativeFactory, file_descriptor); | |
magjed_webrtc
2015/11/24 09:41:15
nit: I think you should use 2 space indentation li
| |
139 } | |
140 | |
141 // Stops recording an AEC dump. If no AEC dump is currently being recorded, | |
142 // this call will have no effect. | |
143 public void stopAecDump() { | |
144 nativeStopAecDump(nativeFactory); | |
145 } | |
146 | |
147 // Starts recording an RTC event log. Ownership of the file is transfered to | |
148 // the native code. If an RTC event log is already being recorded, it will be | |
149 // stopped and a new one will start using the provided file. | |
150 public boolean startRtcEventLog(int file_descriptor) { | |
151 return nativeStartRtcEventLog(nativeFactory, file_descriptor); | |
152 } | |
153 | |
154 // Stops recording an RTC event log. If no RTC event log is currently being | |
155 // recorded, this call will have no effect. | |
156 public void StopRtcEventLog() { | |
157 nativeStopRtcEventLog(nativeFactory); | |
158 } | |
159 | |
134 public void setOptions(Options options) { | 160 public void setOptions(Options options) { |
135 nativeSetOptions(nativeFactory, options); | 161 nativeSetOptions(nativeFactory, options); |
136 } | 162 } |
137 | 163 |
138 public void setVideoHwAccelerationOptions(Object renderEGLContext) { | 164 public void setVideoHwAccelerationOptions(Object renderEGLContext) { |
139 nativeSetVideoHwAccelerationOptions(nativeFactory, renderEGLContext); | 165 nativeSetVideoHwAccelerationOptions(nativeFactory, renderEGLContext); |
140 } | 166 } |
141 | 167 |
142 public void dispose() { | 168 public void dispose() { |
143 nativeFreeFactory(nativeFactory); | 169 nativeFreeFactory(nativeFactory); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 | 220 |
195 private static native long nativeCreateVideoTrack( | 221 private static native long nativeCreateVideoTrack( |
196 long nativeFactory, String id, long nativeVideoSource); | 222 long nativeFactory, String id, long nativeVideoSource); |
197 | 223 |
198 private static native long nativeCreateAudioSource( | 224 private static native long nativeCreateAudioSource( |
199 long nativeFactory, MediaConstraints constraints); | 225 long nativeFactory, MediaConstraints constraints); |
200 | 226 |
201 private static native long nativeCreateAudioTrack( | 227 private static native long nativeCreateAudioTrack( |
202 long nativeFactory, String id, long nativeSource); | 228 long nativeFactory, String id, long nativeSource); |
203 | 229 |
230 private static native boolean nativeStartAecDump(long nativeFactory, int file_ descriptor); | |
231 | |
232 private static native void nativeStopAecDump(long nativeFactory); | |
233 | |
234 private static native boolean nativeStartRtcEventLog(long nativeFactory, int f ile_descriptor); | |
235 | |
236 private static native void nativeStopRtcEventLog(long nativeFactory); | |
237 | |
204 public native void nativeSetOptions(long nativeFactory, Options options); | 238 public native void nativeSetOptions(long nativeFactory, Options options); |
205 | 239 |
206 private static native void nativeSetVideoHwAccelerationOptions( | 240 private static native void nativeSetVideoHwAccelerationOptions( |
207 long nativeFactory, Object renderEGLContext); | 241 long nativeFactory, Object renderEGLContext); |
208 | 242 |
209 private static native void nativeThreadsCallbacks(long nativeFactory); | 243 private static native void nativeThreadsCallbacks(long nativeFactory); |
210 | 244 |
211 private static native void nativeFreeFactory(long nativeFactory); | 245 private static native void nativeFreeFactory(long nativeFactory); |
212 } | 246 } |
OLD | NEW |