VideoCore-Inactive
VideoCore-Inactive copied to clipboard
When application enter background and then enter foreground application will crash
This is break point in StreamSession.mm
Can you help me resolve this issue?
Stop the stream when you go to background and restart it when you enter foreground again.
to manage my session whenever I want without a crash ! Use this if (_session) {
for (UIGestureRecognizer *recognizer in _session.previewView.gestureRecognizers) {
[_session.previewView removeGestureRecognizer:recognizer];
}
[_session.previewView removeFromSuperview];
_session = nil;
}
you put this code Add Observer using ApplicationDidEnterBackGround Notification.
Stop the stream when you go to background and restart it when you enter foreground again.
-(void)appWillResignActive:(NSNotification_)note { [session pauseCapture]; } -(void)appBecameActive:(NSNotification)note { [_session resumeCapture]; }
Hey! Probably I fixed this issue #348