danielebogo/DBCamera

Camera not working properly in iPod Touch 5th

开放

#183 创建于 2015年9月3日

 (0 条评论) (0 个反应) (0 位负责人)Objective-C (256 个派生)github user discovery
Hacktoberfest

仓库指标

星标
 (1,255 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

iOS 8.4. Front camera is not working. Showing black. ipod touch has only front camera, so I am calling switchCamera in this manner

[self presentViewController:nav animated:YES completion:^{

    //toggle to selfie mode (i.e. front camera)
    [cameraContainer.cameraViewController.cameraView.delegate switchCamera];
}];

switchCamera calls cameraManager's toggle cameraToggle which has a check hasMultipleCameras. Since ipod touch has only one camera, the toggle does not take any effect and the user is stuck with default back camera which does not exist.

Would it be possible to add configuration on which camera should defaulted? I.e. CameraMode = Front or Back?

Thank you.

贡献者指南