如何从一个AVCaptureSession创建两个AVCaptureVideoPreviewLayer?

时间:2017-02-24 14:28:51

标签: ios swift avfoundation avcapturesession

我有AVCaptureSession,我在AVCaptureVideoPreviewLayer中显示UICollectionViewCell。如果用户点击UICollectionViewCell,则会打开另一个CameraController(它是UIViewController的继承人)并在AVCaptureVideoPreviewLayer动画中添加UIView。当用户关闭CameraController时,动画已完成,我返回AVCaptureVideoPreviewLayer中的UICollectionViewCell,问题是虽然明显返回,但我更改了AVCaptureVideoPreviewLayer帧。所以我想制作两个AVCaptureVideoPreviewLayer,具有不同的帧值。我怎么能这样做?

0 个答案:

没有答案