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

View File

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