When the video is shown, I hit the "done" button to close the native player and I try to open the same video with the same IR and the app freeze/crash...
The associed log file:
2012-11-20 19:00:25.895 SimpleIRExample INFO/AR(2815) 2012-11-20 19:00:25: QCAR SDK version 1.5.9
2012-11-20 19:00:26.185 SimpleIRExample DEBUG/AR(2815) UIView has CAEAGLLayer class
2012-11-20 19:00:26.192 SimpleIRExample DEBUG/AR(2815) UIView responds to selector renderFrameQCAR
2012-11-20 19:00:28.485 SimpleIRExample *** - - videoSettings dictionary contains one or more unsupported (ignored) keys: (
Width,
AVVideoScalingModeKey,
Height
)
2012-11-20 19:00:28.497 SimpleIRExample INFO/AR(2815) 2012-11-20 19:00:28: ImageTracker: Successfully created dataset
Nov 20 19:00:41 iPhone SimpleIRExample <Error>: CGContextSaveGState: invalid context 0x0
Nov 20 19:00:41 iPhone SimpleIRExample <Error>: CGContextClipToRect: invalid context 0x0
Nov 20 19:00:41 iPhone SimpleIRExample <Error>: CGContextTranslateCTM: invalid context 0x0
Nov 20 19:00:41 iPhone SimpleIRExample <Error>: CGContextDrawShading: invalid context 0x0
Nov 20 19:00:41 iPhone SimpleIRExample <Error>: CGContextRestoreGState: invalid context 0x0
2012-11-20 19:00:41.914 SimpleIRExample Autoplay: Disabling autoplay for pause
thanks for sharing the project. We'll have a look at it this week.
O
Olivier Hugues
said
about 11 years ago
Dear Wolfgang,
Have you looked at the problem?
Olivier.
A
Andreas Schacherbauer
said
almost 11 years ago
Hi Olivier,
please have a look when you initialize your WTARchitectView and when you're loading your ARchitect World.
When the video will be presented and later on dismissed, the viewWillAppear, viewDidAppear, viewWillDisappear, viewDidDisappear methods are called. Please make sure that your initialization of WTARchitectView and the ARchitect World is only loaded when you're loading the presenting ViewController and not while you're presenting a video.
Best regards
Andreas
O
Olivier Hugues
said
over 10 years ago
Hi Andreas,
Thanks for your answer. But how can I make sure that the initialization is only done by the presenting ViewController and not while the video is presenting ? Do I need to create a particular ViewControler for the video ?
Ok, I need to use the delegate to get the function urlWasInvoked called. But I also need to open some videos so I use AR.context.startVideoPlayer() in the ARchitect world. Each time this function is called (in a very dummy sample), I get this kind of errors :
Olivier Hugues