fix(ios): missing notification controls when enabled from start (#3898)

This commit is contained in:
Krzysztof Moch
2024-06-12 11:54:22 +02:00
committed by GitHub
parent cfb5b1cd31
commit 2d793dbde1
2 changed files with 6 additions and 6 deletions

View File

@@ -1104,6 +1104,8 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
@objc
func setShowNotificationControls(_ showNotificationControls: Bool) {
_showNotificationControls = showNotificationControls
guard let player = _player else {
return
}
@@ -1113,8 +1115,6 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
} else {
NowPlayingInfoCenterManager.shared.removePlayer(player: player)
}
_showNotificationControls = showNotificationControls
}
@objc