danielebogo/DBCamera

Camera not working properly in iPod Touch 5th

オープン

#183 opened on 2015/09/03

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Objective-C (256 件のフォーク)github user discovery
Hacktoberfest

Repository metrics

Stars
 (1,255 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド