fix(ios): missing notification controls when enabled from start (#3898)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user