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 -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -