Merge pull request #3248 from yooasd11/master

fix: Player shows black screen on re-enter (iOS)
This commit is contained in:
Olivier Bouillet 2023-09-20 11:00:56 +02:00 committed by GitHub
commit 01a47840be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
@objc func applicationWillEnterForeground(notification:NSNotification!) {
self.applyModifiers()
if _playInBackground {
if !_playInBackground {
_playerLayer?.player = _player
_playerViewController?.player = _player
}