ios - Can't add a nil AVCaptureInput -
i have beta tester getting error when trying start video session on our ipad app using opentok ios webrtc sdk. app crashes every time. user on ipad 2 ios 6.1.3. have clue causing such error? best guess involving camera access, i'm @ loss be.
i think can prevent crash checking availability of avcaptureinput object before add avcapturesession.
to simplify check below code:
if ([session canaddinput: backcameradeviceinput]) { [session addinput: backcameradeviceinput]; }
i wish helpful :)
Comments
Post a Comment