From be8cdfdd3386f0d219c8f10a212cc55fe9becfc6 Mon Sep 17 00:00:00 2001 From: Coco Date: Tue, 19 Sep 2023 17:42:48 +0900 Subject: [PATCH] [bugfix] Player shows black screen on re-enter --- ios/Video/RCTVideo.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index 8c4dfacc..c29f4c7c 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -197,7 +197,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH @objc func applicationWillEnterForeground(notification:NSNotification!) { self.applyModifiers() - if _playInBackground { + if !_playInBackground { _playerLayer?.player = _player _playerViewController?.player = _player }