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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -