 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2146973002:
    RELAND: ImageCapture: Implement takePhoto() for Mac AVFoundation  (Closed)
    
  
    Issue 
            2146973002:
    RELAND: ImageCapture: Implement takePhoto() for Mac AVFoundation  (Closed) 
  | DescriptionRELAND: ImageCapture: Implement takePhoto() for Mac AVFoundation
Got reverted due to breaking
WebRtcWebcamBrowserTests/WebRtcWebcamBrowserTest.MANUAL_TestAcquiringAndReacquiringWebcam/0
in some WebRtc Mac bot, possibly because it has no real WebCam
or it has one without  AVCaptureStillImageOutputClass support.
This CL adds a guard  [captureSession_ canAddOutput:...]
before [captureSession_ addOutput:...]
Original description ----------------------------------------------
ImageCapture: Implement takePhoto() for Mac AVFoundation
By pulling the necessary symbols out of AVFoundation
and using them; most notably (Cr)AVCaptureStillImageOutput.
TakePhoto is already implemented for Android (both APIs).
Also adding VideoCaptureDeviceTest::MAYBE_TakePhoto
test case, enabled only for Mac.
BUG=518807
TEST=Run build with flag --enable-blink-features=ImageCapture,
navigate to [1] and push buttons
- Open Camera ...
- Create ImageCapturer
- takePhoto()  (N times!) --> profit
[1] https://rawgit.com/Miguelao/demos/master/imagecapture.html
TBR=rsesek@chromium.org since the change is trivial.
Committed: https://crrev.com/d4179235b928634aeadb0c3379d385caf0ad3a07
Cr-Commit-Position: refs/heads/master@{#405243}
   Patch Set 1 : Verbatim https://codereview.chromium.org/2129733004 #Patch Set 2 : add a [captureSession_ canAddOutput:stillImageOutput_] guard #
 Messages
    Total messages: 9 (4 generated)
     | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||