[bugfix] Player shows black screen on re-enter

This commit is contained in:
Coco 2023-09-19 17:42:48 +09:00
parent ef5c63fdd2
commit be8cdfdd33

View File

@ -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
}