On specific Macbooks (no exact pattern, unfortunately), video from an integrated camera is not captured. Changed AVCaptureVideoDataOutput pixel format configuration as in Chromium which solved the problem. https://chromium.googlesource.com/chromium/src/media/+/master/capture/video/mac/video_capture_device_avfoundation_mac.mm FourCharCode best_fourcc = kCVPixelFormatType_422YpCbCr8; Tested with external cameras as well. Bug: webrtc:8958 Change-Id: Ib99382b38d1914e2963761a33df310024524c9a4 Reviewed-on: https://webrtc-review.googlesource.com/58880 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22709} |
||
|---|---|---|
| .. | ||
| device_info_objc.h | ||
| device_info_objc.mm | ||
| device_info.h | ||
| device_info.mm | ||
| rtc_video_capture_objc.h | ||
| rtc_video_capture_objc.mm | ||
| video_capture.h | ||
| video_capture.mm | ||