I started developing for the iOS plattform. If I initialize the camera as before ( for me windows) , there is an error when calling initGrabber(wdith, height)
is it possible to call the grabber with native ObjC methods? how can I use ObjC inside OF?
I am testing on a ipad 2017, OF 0.9.5.
My colleague uses the camera on iOS and has no such issue, on 0.9.8 or master. Using
I don’t know about native ObjC methods…
Does the ios/videoGrabberExample work?
no the videograbber didn’t work. It throws this:
I throws libsystem_kernel.dylib`__abort_with_payload:
0x19137bd6c <+0>: mov x16, #0x209
0x19137bd70 <+4>: svc #0x80
-> 0x19137bd74 <+8>: b.lo 0x19137bd8c ; <+32>
0x19137bd78 <+12>: stp x29, x30, [sp, #-0x10]!
0x19137bd7c <+16>: mov x29, sp
0x19137bd80 <+20>: bl 0x19136086c ; cerror_nocancel
0x19137bd84 <+24>: mov sp, x29
0x19137bd88 <+28>: ldp x29, x30, [sp], #0x10
0x19137bd8c <+32>: ret
I also tried the “normal” setup. the error occurs on the initGrabber() method
I tried also the movieplayer example, but I can’t see the UI Elements. I have to adjust something? some Xcode settings?
I hope someone on OSX+iOS can help you, I’m on Linux.
Are you stuck on 0.9.5 or could you download 0.9.8 for iOS from http://openframeworks.cc/download/ ? Maybe a more recent version solves the issue?
Hi. iOS 10 require Privacy permission of camera microphone etc to use.
Follow these stepsps to activate privacy permission settings and build & run on device the ios/videoGrabberExample.
- Validate project settings -> perform changes
- Select target ->info, and under Bundle name add new key <Privacy - Camera Usage Description>
3.Build & Run.
Thanks! I see the grabber image…
Now I have an entry of my app in the ipad presets. If someone deactivates the camera for this app, the application crashes. How can I get this information when I start my app, or catch the error?
also there’s a rotaion isuue with the ipad. I allowed all directions, but it starts allways in portrait, theres no way to automatially rotate to the real orientation?