diff --git a/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m b/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m index c3162776e0..956cb872f6 100644 --- a/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m +++ b/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m @@ -80,6 +80,7 @@ - (id) initWithFrame:(CGRect)frame if (self) { _tryLockErrorCount = 0; _shouldLockWhileBeingMovedToWindow = YES; + _applicationState = IJKSDLGLViewApplicationForegroundState; self.glActiveLock = [[NSRecursiveLock alloc] init]; _registeredNotifications = [[NSMutableArray alloc] init]; [self registerApplicationObservers];