commit | 27edde3182ccc9c6afcd65b7e6d8b6558cb49d64 | [log] [tgz] |
---|---|---|
author | Saúl Ibarra Corretgé <saghul@jitsi.org> | Fri Jul 30 14:44:01 2021 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 25 17:04:40 2021 |
tree | fcb4fca68ccbd5cc078839275687731b509d6e64 | |
parent | 68952fed31bf47d461d8bd35bfb109bfc0c3fbc5 [diff] |
Handle camera1 session creation errors more gracefully Specifically, defer getting the camera index so the error can be reported instead of crashing: Fatal Exception: java.lang.IllegalArgumentException: No such camera: Camera 1, Facing front, Orientation 270 at org.webrtc.Camera1Enumerator.getCameraIndex(Camera1Enumerator.java:170) at org.webrtc.Camera1Capturer.createCameraSession(Camera1Capturer.java:31) at org.webrtc.CameraCapturer$5.run(CameraCapturer.java:272) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.os.HandlerThread.run(HandlerThread.java:65) Bug: webrtc:13032 Change-Id: Ida6bc65046770c11c2b3ee832906e8454cec10df Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227290 Reviewed-by: Xavier Lepaul <xalep@webrtc.org> Commit-Queue: Xavier Lepaul <xalep@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34855}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.