Log in or register to post comments

VideoPlayback is stuck when back from Fullscreen

April 9, 2015 - 2:25am #1
Hello.
 
I am testing the original VideoPlayback sample of Vuforia 4.0.103 on iPhone5(iOS 8.1.3).
 
I played a video many times with changing views between the AR camera view and the fullscreen native player.
When I tap the done button on the fullscreen mode and the AR camera view shows up again, the AR camera view is sometimes stuck. I get the troble repeatedly. 
 
The app itself is not stuck because the slide menu is working properly by double-tapping.
 
I remember that previous sample apps don't have the problem. I guess it is the bug of the version 4.0 sample app.
 
I will develop my app based on the VideoPlayback sample soon. I'd like to fix the problem. Could you give me advices?

VideoPlayback is stuck when back from Fullscreen

May 3, 2015 - 5:42am #4

my iPad 4 is on IOS 8.3 and I am still getting a black AR screne after returning from fullwscreen video via the native Done button.

 

The app has not frozen and mu Unity UI is still visiable and active, I just have a black screen???

VideoPlayback is stuck when back from Fullscreen

April 15, 2015 - 5:17am #3
I found what causes the problem.
 
I updated my iPhone6 Plus to 8.3, the problem does't occur after that.
 
Apparently, the iOS 8.1.x and 8.2.x bugs cause the problem and the problem was fixed now. 

Video Background is stuck when back from Fullscreen

April 14, 2015 - 10:58pm #2
I tried debugging the sample.
 
After the camera background stops, I control(play and stop) a video on the texture. 
 
Logs show renderFrame is working right and I can hear the sound of the video.
 
So, the problem is no camera feeds return.
 
The next method seems not to work.
 
VideoPlaybackEAGLView.mm
QCAR::Renderer::getInstance().drawVideoBackground();
 
BTW, I find the following codes was modified from the previous versions. I guess they relates to the problem.
 
Why did you change them?
I become aware of the fact that presentViewController is now not recommended.
 
VideoPlaybackViewController.mm
// Present a view controller using the root view controller (eaglViewController)
- (void)rootViewControllerPresentViewController:(UIViewController*)viewController inContext:(BOOL)currentContext
{
//    if (YES == currentContext) {
//        // Use UIModalPresentationCurrentContext so the root view is not hidden
//        // when presenting another view controller
//        [self setModalPresentationStyle:UIModalPresentationCurrentContext];
//    }
//    else {
//        // Use UIModalPresentationFullScreen so the presented view controller
//        // covers the screen
//        [self setModalPresentationStyle:UIModalPresentationFullScreen];
//    }
//    
//    viewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//    if ([self respondsToSelector:@selector(presentViewController:animated:completion:)]) {
//        // iOS > 4
//        [self presentViewController:viewController animated:YES completion:nil];
//    }
//    else {
//        // iOS 4
//        [self presentModalViewController:viewController animated:NO];
//    }
//    [eaglView setOnFullScreen:YES];
    
    NSLog(@"navigationController is:%@", [navController description]);
    fullScreenPlayerPlaying = YES;
    [navController pushViewController:viewController animated:YES];
}

// Dismiss a view controller presented by the root view controller
// (eaglViewController)
- (void)rootViewControllerDismissPresentedViewController
{
//    // Dismiss the presented view controller (return to the root view
//    // controller)
//    if ([self respondsToSelector:@selector(dismissViewControllerAnimated:completion:)]) {
//        // iOS > 4
//        [self dismissViewControllerAnimated:YES completion:nil];
//    }
//    else {
//        // iOS 4
//        [self dismissModalViewControllerAnimated:YES];
//    }
//    [eaglView setOnFullScreen:NO];
//
    NSLog(@"navigationController is:%@", [navController description]);
    fullScreenPlayerPlaying = NO;
    [navController popViewControllerAnimated:YES];

}

 

Log in or register to post comments