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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -935,7 +935,7 @@ PODS:
- React-Mapbuffer (0.74.1): - React-Mapbuffer (0.74.1):
- glog - glog
- React-debug - React-debug
- react-native-video (6.1.2): - react-native-video (6.2.0):
- DoubleConversion - DoubleConversion
- glog - glog
- hermes-engine - hermes-engine
@ -949,7 +949,7 @@ PODS:
- React-featureflags - React-featureflags
- React-graphics - React-graphics
- React-ImageManager - React-ImageManager
- react-native-video/Video (= 6.1.2) - react-native-video/Video (= 6.2.0)
- React-NativeModulesApple - React-NativeModulesApple
- React-RCTFabric - React-RCTFabric
- React-rendererdebug - React-rendererdebug
@ -957,7 +957,7 @@ PODS:
- ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core - ReactCommon/turbomodule/core
- Yoga - Yoga
- react-native-video/Video (6.1.2): - react-native-video/Video (6.2.0):
- DoubleConversion - DoubleConversion
- glog - glog
- hermes-engine - hermes-engine
@ -1422,7 +1422,7 @@ SPEC CHECKSUMS:
React-jsitracing: 3de522f8f794dccd3c54af9160dc992ee65bd494 React-jsitracing: 3de522f8f794dccd3c54af9160dc992ee65bd494
React-logger: 7e7403a2b14c97f847d90763af76b84b152b6fce React-logger: 7e7403a2b14c97f847d90763af76b84b152b6fce
React-Mapbuffer: c5844bf3c2206f5475c0fc2340a89b049ea23c97 React-Mapbuffer: c5844bf3c2206f5475c0fc2340a89b049ea23c97
react-native-video: edecf23162492d4f41f96ff167684fc0507ca63a react-native-video: 59f262a2d87c998b747ca1f031efb6eba1c156b5
React-nativeconfig: 21d89c65ca39875fad2c5c465e0e013e514eba21 React-nativeconfig: 21d89c65ca39875fad2c5c465e0e013e514eba21
React-NativeModulesApple: e2e180dae4486b2978fcf3564cc4c8de4b453a68 React-NativeModulesApple: e2e180dae4486b2978fcf3564cc4c8de4b453a68
React-perflogger: 3d31e0d1e8ad891e43a09ac70b7b17a79773003a React-perflogger: 3d31e0d1e8ad891e43a09ac70b7b17a79773003a

View File

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