mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-19 00:27:51 +01:00
![]() On Meizu devices (and maybe on other devices too) when camera is disallowed in settings `android.hardware.Camera.open` returns non-null Camera instance, but when any method is invoked on `Camera` instance the `RuntimeException` is thrown. It claims that Camera instance is used after `release()` was invoked on that instance. `Camera1Session.open` didn't handle that case and crashed whole application when returned Camera instance was already released or more likely was not even properly initialized during `Camera.open`. Bug: webrtc:8685 Change-Id: I5cda397a599e87971bf9a4bd3faf6fc4a0d198f3 Reviewed-on: https://webrtc-review.googlesource.com/36300 Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21556} |
||
---|---|---|
.. | ||
api/org/webrtc | ||
instrumentationtests | ||
src | ||
tests/src/org/webrtc | ||
AndroidManifest.xml | ||
BUILD.gn | ||
OWNERS | ||
PRESUBMIT.py | ||
README |
This directory holds a Java implementation of the webrtc::PeerConnection API, as well as the JNI glue C++ code that lets the Java implementation reuse the C++ implementation of the same API. To build the Java API and related tests, generate GN projects with: --args='target_os="android"' To use the Java API, start by looking at the public interface of org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest. To understand the implementation of the API, see the native code in jni/.