fix(ios): fix notification controls enabled by default (#3861)
This commit is contained in:
parent
8ad1047dc5
commit
5c6dfb26c5
@ -459,8 +459,10 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
_player = AVPlayer()
|
||||
_player!.replaceCurrentItem(with: playerItem)
|
||||
|
||||
// We need to register player after we set current item and only for init
|
||||
NowPlayingInfoCenterManager.shared.registerPlayer(player: _player!)
|
||||
if _showNotificationControls {
|
||||
// We need to register player after we set current item and only for init
|
||||
NowPlayingInfoCenterManager.shared.registerPlayer(player: _player!)
|
||||
}
|
||||
} else {
|
||||
_player?.replaceCurrentItem(with: playerItem)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user