Just solved the issue calling: [[QCARutils getInstance] destroyAR];
the full method is here:
- (IBAction)backToPreviousController:(id)sender {
[self removeMoviePlayerView];
EAGLView* arView = [self getARView];
for (int i = 0; i < NUM_VIDEO_TARGETS; ++i) {
VideoPlayerHelper* player = [arView getVideoPlayerHelper:i];
// If the video is playing, pause it and store the index of the player
// so playback can be resumed
if (PLAYING == [player getStatus]) {
[player pause];
}
// Store the current video playback time for use when resuming (even if
// the player is currently paused)
videoPlaybackTime[i] = [player getCurrentPosition];
// Unload the video
if (NO == [player unload]) {
NSLog(@"Failed to unload media");
}
}
// do the same as when the view has dissappeared
[self viewDidDisappear:NO];
[[QCARutils getInstance]setAppStatus: APPSTATUS_CAMERA_STOPPED];
[[QCARutils getInstance] destroyAR];
[self.navigationController popViewControllerAnimated:YES];
}
Hope this helps, for anyone else.
Thanks!
Glad you solved this and thanks for sharing!
N