Log in or register to post comments

Integrating sample codes into a tabbed application

March 6, 2013 - 7:04am #1

Hello everyone,

I am new to Vuforia as well as iOS development. Right now I am trying to include the VideoPlayback sample into my project which consists of Tab bar control, i.e. the VideoPlayback sample will be launched in one of the Tabbed View. So far I have imported the sample codes into my project, imported all necessary frameworks and made changes on build settings (with accordance to the sample project). But I have no idea on how to integrate those codes to the Tabbed View controller. Can anyone tell me how to do that?

Here are some background information for my project:

XCode version: 4.6 

iPhone 4, iOS 6.0.1

A story board is used.

 

Thank you very much for help!

Integrating sample codes into a tabbed application

November 3, 2014 - 8:11pm #10

I have followed the instructions and these were very helpful.

 

Currenty when I click on the tab icon to trigger the ARParentViewController I get a black screen instead of seeing the camera. Any suggestions? I do get a the error for the Timeframe as well.

 

 

objc[10956]: Class UITabBarController is implemented in both /System/Library/Frameworks/UIKit.framework/UIKit and /private/var/mobile/Containers/Bundle/Application/5F61CE56-1817-40F4-B884-48DBCE9AD9FE/ImageTargets.app/ImageTargets. One of the two will be used. Which one is undefined.

2014-11-03 22:10:52.673 ImageTargets[10956:1486835] ARParentVC: viewDidLoad

2014-11-03 22:10:52.678 ImageTargets[10956:1486835] ARVC: loadView

2014-11-03 22:10:52.831 ImageTargets[10956:1486835] QCAR OpenGL flag: 2

2014-11-03 22:10:52.831 ImageTargets[10956:1486835] ARVC: viewDidLoad

2014-11-03 22:10:52.878 ImageTargets[10956:1486835] QCARutils onCreate()

2014-11-03 22:10:52.879 ImageTargets[10956:1486835] APPSTATUS_INIT_APP

2014-11-03 22:10:52.879 ImageTargets[10956:1486835] APPSTATUS_INIT_QCAR

2014-11-03 22:10:52.880 ImageTargets[10956:1486982] initing !!!!!

2014-11-03 22:10:52.912 ImageTargets[10956:1486835] autofocus: 1, autofocusContinuous: 1, torch 1

2014-11-03 22:10:52.913 ImageTargets[10956:1486835] ARVC: Rotating to Portrait

2014-11-03 22:10:52.914 ImageTargets[10956:1486835] ARParentVC: viewWillAppear

2014-11-03 22:10:52.914 ImageTargets[10956:1486835] ARVC: Rotating to Portrait

2014-11-03 22:10:52.914 ImageTargets[10956:1486835] ARVC: viewWillAppear

2014-11-03 22:10:52.915 ImageTargets[10956:1486835] EAGLView: layoutSubviews

2014-11-03 22:10:52.924 ImageTargets[10956:1486982] INFO/AR(10956) 2014-11-03 22:10:52: QCAR SDK version 1.5.9

2014-11-03 22:10:52.928 ImageTargets[10956:1486835] ARParentVC: viewDidAppear

2014-11-03 22:10:52.928 ImageTargets[10956:1486835] ARVC: viewDidAppear

2014-11-03 22:10:52.928 ImageTargets[10956:1486835] QCARutils onResume()

2014-11-03 22:10:52.987 ImageTargets[10956:1486835] APPSTATUS_INIT_TRACKER

2014-11-03 22:10:52.990 ImageTargets[10956:1486835] Successfully initialized ImageTracker.

2014-11-03 22:10:52.991 ImageTargets[10956:1486835] APPSTATUS_INIT_APP_AR

2014-11-03 22:10:52.991 ImageTargets[10956:1486835] APPSTATUS_LOAD_TRACKER

2014-11-03 22:10:52.991 ImageTargets[10956:1486989] INFO/AR(10956) 2014-11-03 22:10:52: ImageTracker: Successfully created dataset

2014-11-03 22:10:53.064 ImageTargets[10956:1486989] Successfully loaded data set.

2014-11-03 22:10:53.065 ImageTargets[10956:1486989] Successfully activated data set.

2014-11-03 22:10:53.066 ImageTargets[10956:1486989] INFO/AR(10956) 2014-11-03 22:10:53: ImageTracker: Successfully created dataset

2014-11-03 22:10:53.111 ImageTargets[10956:1486989] Successfully loaded data set.

2014-11-03 22:10:53.112 ImageTargets[10956:1486835] APPSTATUS_INITED

2014-11-03 22:10:53.112 ImageTargets[10956:1486835] APPSTATUS_CAMERA_RUNNING

2014-11-03 22:10:53.127 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.127 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration

2014-11-03 22:10:53.128 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> setVideoMaxFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMaxFrameDuration

2014-11-03 22:10:53.129 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.129 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.130 ImageTargets[10956:1486835] DEBUG/AR(10956) UIView has CAEAGLLayer class

2014-11-03 22:10:53.130 ImageTargets[10956:1486835] DEBUG/AR(10956) UIView responds to selector renderFrameQCAR

2014-11-03 22:10:53.131 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.131 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.132 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.132 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.132 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.133 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.133 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.133 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.831 ImageTargets[10956:1486835] *** -[AVCaptureVideoDataOutput setVideoSettings:] - videoSettings dictionary contains one or more unsupported (ignored) keys: (

    Height,

    Width

)

2014-11-03 22:10:53.851 ImageTargets[10956:1486835] Failed to make complete framebuffer object 8cd6

2014-11-03 22:10:53.853 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.855 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.876 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.877 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.898 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.899 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.931 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.931 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.966 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.966 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.000 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.000 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.067 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.068 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.101 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.101 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.167 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.168 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.200 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.201 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.234 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.234 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.267 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.267 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.300 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.301 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.334 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.334 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.367 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.367 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.401 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.401 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.434 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.434 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.467 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.467 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.500 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.501 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.533 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.533 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.566 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.567 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.600 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.601 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.634 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.634 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.667 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.668 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.700 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.700 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.733 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.733 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.766 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.767 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.800 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.800 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.832 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.833 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.866 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.867 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.900 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.900 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.933 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.933 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.967 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.967 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.999 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.000 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.067 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.067 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.101 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.102 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.171 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.172 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.202 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.202 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.229 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.229 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.262 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.263 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.300 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.301 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.330 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.330 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.338 ImageTargets[10956:1486835] ARParentVC: viewDidDisappear

2014-11-03 22:10:55.338 ImageTargets[10956:1486835] ARVC: viewDidDisappear

2014-11-03 22:10:55.338 ImageTargets[10956:1486835] QCARutils onPause()

2014-11-03 22:10:55.339 ImageTargets[10956:1486835] APPSTATUS_CAMERA_STOPPED

2014-11-03 22:10:55.400 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.400 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.472 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.472 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.496 ImageTargets[10956:1486835] Camera stopped and deinited

Integrating sample codes into a tabbed application

November 3, 2014 - 8:11pm #9

I have followed the instructions and these were very helpful.

 

Currenty when I click on the tab icon to trigger the ARParentViewController I get a black screen instead of seeing the camera. Any suggestions? I do get a the error for the Timeframe as well.

 

 

objc[10956]: Class UITabBarController is implemented in both /System/Library/Frameworks/UIKit.framework/UIKit and /private/var/mobile/Containers/Bundle/Application/5F61CE56-1817-40F4-B884-48DBCE9AD9FE/ImageTargets.app/ImageTargets. One of the two will be used. Which one is undefined.

2014-11-03 22:10:52.673 ImageTargets[10956:1486835] ARParentVC: viewDidLoad

2014-11-03 22:10:52.678 ImageTargets[10956:1486835] ARVC: loadView

2014-11-03 22:10:52.831 ImageTargets[10956:1486835] QCAR OpenGL flag: 2

2014-11-03 22:10:52.831 ImageTargets[10956:1486835] ARVC: viewDidLoad

2014-11-03 22:10:52.878 ImageTargets[10956:1486835] QCARutils onCreate()

2014-11-03 22:10:52.879 ImageTargets[10956:1486835] APPSTATUS_INIT_APP

2014-11-03 22:10:52.879 ImageTargets[10956:1486835] APPSTATUS_INIT_QCAR

2014-11-03 22:10:52.880 ImageTargets[10956:1486982] initing !!!!!

2014-11-03 22:10:52.912 ImageTargets[10956:1486835] autofocus: 1, autofocusContinuous: 1, torch 1

2014-11-03 22:10:52.913 ImageTargets[10956:1486835] ARVC: Rotating to Portrait

2014-11-03 22:10:52.914 ImageTargets[10956:1486835] ARParentVC: viewWillAppear

2014-11-03 22:10:52.914 ImageTargets[10956:1486835] ARVC: Rotating to Portrait

2014-11-03 22:10:52.914 ImageTargets[10956:1486835] ARVC: viewWillAppear

2014-11-03 22:10:52.915 ImageTargets[10956:1486835] EAGLView: layoutSubviews

2014-11-03 22:10:52.924 ImageTargets[10956:1486982] INFO/AR(10956) 2014-11-03 22:10:52: QCAR SDK version 1.5.9

2014-11-03 22:10:52.928 ImageTargets[10956:1486835] ARParentVC: viewDidAppear

2014-11-03 22:10:52.928 ImageTargets[10956:1486835] ARVC: viewDidAppear

2014-11-03 22:10:52.928 ImageTargets[10956:1486835] QCARutils onResume()

2014-11-03 22:10:52.987 ImageTargets[10956:1486835] APPSTATUS_INIT_TRACKER

2014-11-03 22:10:52.990 ImageTargets[10956:1486835] Successfully initialized ImageTracker.

2014-11-03 22:10:52.991 ImageTargets[10956:1486835] APPSTATUS_INIT_APP_AR

2014-11-03 22:10:52.991 ImageTargets[10956:1486835] APPSTATUS_LOAD_TRACKER

2014-11-03 22:10:52.991 ImageTargets[10956:1486989] INFO/AR(10956) 2014-11-03 22:10:52: ImageTracker: Successfully created dataset

2014-11-03 22:10:53.064 ImageTargets[10956:1486989] Successfully loaded data set.

2014-11-03 22:10:53.065 ImageTargets[10956:1486989] Successfully activated data set.

2014-11-03 22:10:53.066 ImageTargets[10956:1486989] INFO/AR(10956) 2014-11-03 22:10:53: ImageTracker: Successfully created dataset

2014-11-03 22:10:53.111 ImageTargets[10956:1486989] Successfully loaded data set.

2014-11-03 22:10:53.112 ImageTargets[10956:1486835] APPSTATUS_INITED

2014-11-03 22:10:53.112 ImageTargets[10956:1486835] APPSTATUS_CAMERA_RUNNING

2014-11-03 22:10:53.127 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.127 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration

2014-11-03 22:10:53.128 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> setVideoMaxFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMaxFrameDuration

2014-11-03 22:10:53.129 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.129 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.130 ImageTargets[10956:1486835] DEBUG/AR(10956) UIView has CAEAGLLayer class

2014-11-03 22:10:53.130 ImageTargets[10956:1486835] DEBUG/AR(10956) UIView responds to selector renderFrameQCAR

2014-11-03 22:10:53.131 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.131 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.132 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.132 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.132 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.133 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.133 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.133 ImageTargets[10956:1486835] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.831 ImageTargets[10956:1486835] *** -[AVCaptureVideoDataOutput setVideoSettings:] - videoSettings dictionary contains one or more unsupported (ignored) keys: (

    Height,

    Width

)

2014-11-03 22:10:53.851 ImageTargets[10956:1486835] Failed to make complete framebuffer object 8cd6

2014-11-03 22:10:53.853 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.855 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.876 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.877 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.898 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.899 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.931 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.931 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:53.966 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:53.966 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.000 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.000 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.067 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.068 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.101 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.101 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.167 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.168 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.200 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.201 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.234 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.234 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.267 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.267 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.300 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.301 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.334 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.334 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.367 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.367 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.401 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.401 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.434 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.434 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.467 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.467 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.500 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.501 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.533 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.533 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.566 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.567 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.600 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.601 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.634 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.634 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.667 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.668 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.700 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.700 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.733 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.733 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.766 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.767 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.800 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.800 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.832 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.833 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.866 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.867 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.900 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.900 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.933 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.933 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.967 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:54.967 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:54.999 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.000 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.034 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.067 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.067 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.101 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.102 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.135 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.171 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.172 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.202 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.202 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.229 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.229 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.262 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.263 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.300 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.301 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.330 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.330 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.338 ImageTargets[10956:1486835] ARParentVC: viewDidDisappear

2014-11-03 22:10:55.338 ImageTargets[10956:1486835] ARVC: viewDidDisappear

2014-11-03 22:10:55.338 ImageTargets[10956:1486835] QCARutils onPause()

2014-11-03 22:10:55.339 ImageTargets[10956:1486835] APPSTATUS_CAMERA_STOPPED

2014-11-03 22:10:55.400 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.400 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.472 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges

2014-11-03 22:10:55.472 ImageTargets[10956:1486996] WARNING: -[<AVCaptureConnection: 0x145ebf30> videoMinFrameDuration] is deprecated.  Please use AVCaptureDevice activeVideoMinFrameDuration

2014-11-03 22:10:55.496 ImageTargets[10956:1486835] Camera stopped and deinited

Integrating sample codes into a tabbed application

March 27, 2013 - 3:12am #8

Hi jackmann

 I moved the changes from the ARParentViewController to the CRParentViewController and now the scanning and aquisition work

This ought to be enough, and you should not need any trickery to avoid the black screen.  This happens because the the ARViewSize is set to zero (as you should be able to see from the log).  To overcome this Steps 2 & 3 should be enough as per below, because this passes the view size in before the AR gets initialised.

HTH

N

 

 

2  In ARParentViewController.h add the following line

 

@property (nonatomicCGSize arViewSize;

3  In ARParentViewController.m within loadView() amend the following:

 

    // need to set size here to setup camera image size for AR

//    arViewController.arViewSize = arViewRect.size;

 

    // set size so its not zero

    arViewController.arViewSize = arViewSize;

 

 

Integrating sample codes into a tabbed application

March 26, 2013 - 12:05pm #7

Thanks for your response.  I moved the changes from the ARParentViewController to the CRParentViewController and now the scanning and aquisition work.  

Apparently, the createParentViewAndSplashContinuation is not adding a splash screen as the appWindow was never defined in the init method.  

I'm now trying to delay the modal transition to the CRParentViewController until the camera is ready so I don't see a black screen.  When a button is pushed I'm calling the scanForImage method. Unfortunately, the application never transitions to the CRParentViewController.  Any advice would be greatly appreciated.

 

 

- (IBAction)scanForImage:(id)sender {

    

    [self.activityIndicator startAnimating];

    

    [NSTimer scheduledTimerWithTimeInterval:0.2 target:self selector:@selector(endAnimating:) userInfo:nil repeats:YES];

    

    }

 

- (void)endAnimating:(NSTimer *)theTimer {

    

    // If the video is available, then turn off the timer and activity indicator and perform the segue

    if ([QCARutils getInstance].videoStreamStarted == YES) {

        

        [theTimer invalidate];

        [self.activityIndicator stopAnimating];

        

        [self presentViewController:_cameraViewController animated:YES completion:nil];

    }

}

Integrating sample codes into a tabbed application

March 26, 2013 - 10:04am #6

Before you tried what you said, did you try what I suggested below?

Does it work?

 

N

Integrating sample codes into a tabbed application

March 26, 2013 - 8:42am #5

I've followed your directions for a simply storyboard demonstration where instead of a tabbarcontroller, I'm simply activating the CloudReco example from a button.  I've set the following storyboard to the CRParentViewController class.  The application runs.  However, the splash screen does not start so I get a nasty black screen before the camera appears and I do not get the overlay when the image is detected.  Currently, the application scans twice and simply stops scanning.

Let me know if you have any advice on how to correct these symptoms.

 

Thanks,

Jack

Integrating sample codes into a tabbed application

March 13, 2013 - 8:36am #4

NalinS, you are so my hero right now.

Thanks so much for this.  I can't wait to test it out.

Integrating sample codes into a tabbed application

March 13, 2013 - 8:34am #3

Hi

It is possible to put a Vuforia ViewController into a UITabBarController.

I was able to do this by carrying out the steps below:

1  Create a storyboard with a Tab Bar Controller, making sure that it is the Initial View Controller, and set one of these view controllers to be ARParentViewController

2  In ARParentViewController.h add the following line

 

@property (nonatomic) CGSize arViewSize;

3  In ARParentViewController.m within loadView() amend the following:

 

    // need to set size here to setup camera image size for AR

//    arViewController.arViewSize = arViewRect.size;

 

    // set size so its not zero

    arViewController.arViewSize = arViewSize;

4  Create a subclass of UITabBarController as follows:

 

@interface TabBarController : UITabBarController <UITabBarControllerDelegate>

...making sure you assign it to the UITabBarController that you created in the Storyboard.

 

5  ...and ensure that it contains the following functions:

 

- (void)viewDidLoad

{

    [super viewDidLoad];

// Do any additional setup after loading the view.

    

    self.delegate = self;

}

 

 

- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController

{

    if ([viewController isKindOfClass:[CRParentViewController class]])

    {

        CRParentViewController* cameraViewController = (CRParentViewController*)viewController;

        

        cameraViewController.arViewSize = self.view.bounds.size;

        

    }

 

    return YES;

}

 

6  Create a new MyAppDelegate class so that it overrides the standard AppDelegate file, which contains the following simpler startup functionality to initialise Vuforia:

 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    // Create the CR-specific QCARutils object to replace the standard one and

    // set the device orientation lock to automatic mode

    CRQCARutils *qUtils = [CRQCARutils getInstance];

    qUtils.deviceOrientationLock = DeviceOrientationLockAuto;

    

    return YES;

}

 

... note that this is required in order to trigger the scene setup in the storyboard.

7  Finally you need to change main.m to be aware of the new AppDelegate class as follows:

 

int main(int argc, char *argv[]) {

    

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    int retVal = UIApplicationMain(argc, argv, nil, @"MyAppDelegate");

    [pool release];

    return retVal;

}

 

... and if all goes well you should have Vuforia running in one of the tabs :)

When you click a different tab it basically suspends Vuforia, so you can drop in and out of it.

HTH

N

 

 

 

 

 

Integrating sample codes into a tabbed application

March 7, 2013 - 4:48am #2

I've been wanting to do this same thing (I have an app that already has a UITabbarContoller and want to make it a third tab).  So far my early experiments weren't so successful.  

http://stackoverflow.com/questions/7952576/xcode-4-2-tabbed-application-adding-new-tab-view

This might be useful to start.  I'm new to iOS programming as well but I'd start by checking if there's anything that would prevent you from making a RootViewContoller that loads your UITabbarController as a subview and making the Vuforia window load as a UIview (Subview) in the TabBar .  

Let me know how it goes... I just haven't gotten around to trying it yet.  To busy playing with Unity. ;)

From the iOS sample Code:

 

 The QCAR sample apps are organised to work with standard iOS view

 controller life cycles.

 

 * QCARutils contains all the code that initialises and manages the QCAR

 lifecycle plus some useful functions for accessing targets etc. This is a

 singleton class that makes QCAR accessible from anywhere within the app.

 

 * AR_EAGLView is a superclass that contains the OpenGL setup for its

 sub-class, EAGLView.

 

 Other classes and view hierarchy exists to establish a robust view life

 cycle:

 

 * ARParentViewController provides a root view for inclusion in other view

 hierarchies  presentModalViewController can present this VC safely. All

 associated views are included within it; it also handles the auto-rotate

 and resizing of the sub-views.

 

 * ARViewController manages the lifecycle of the Camera and Augmentations,

 calling QCAR:createAR, QCAR:destroyAR, QCAR:pauseAR and QCAR:resumeAR

 where required. It also manages the data for the view, such as loading

 textures.

 

 This configuration has been shown to work for iOS Modal and Tabbed views.

 It provides a model for re-usability where you want to produce a

 number of applications sharing code.

Log in or register to post comments