Merge pull request #2721 from tironiigor/fix-onReadyForDisplay-not-called
Fix onReadyForDisplay not being called on iOS
This commit is contained in:
commit
289b2df4d4
@ -36,6 +36,7 @@
|
|||||||
- Fix volume reset issue in exoPlayer [#2371](https://github.com/react-native-video/react-native-video/pull/2371)
|
- Fix volume reset issue in exoPlayer [#2371](https://github.com/react-native-video/react-native-video/pull/2371)
|
||||||
- Change WindowsTargetPlatformVersion to 10.0 [#2706](https://github.com/react-native-video/react-native-video/pull/2706)
|
- Change WindowsTargetPlatformVersion to 10.0 [#2706](https://github.com/react-native-video/react-native-video/pull/2706)
|
||||||
- Fixed Android seeking bug [#2712](https://github.com/react-native-video/react-native-video/pull/2712)
|
- Fixed Android seeking bug [#2712](https://github.com/react-native-video/react-native-video/pull/2712)
|
||||||
|
- Fixed `onReadyForDisplay` not being called [#2721](https://github.com/react-native-video/react-native-video/pull/2721)
|
||||||
|
|
||||||
### Version 5.2.0
|
### Version 5.2.0
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class RCTPlayerObserver: NSObject {
|
|||||||
removePlayerLayerObserver()
|
removePlayerLayerObserver()
|
||||||
}
|
}
|
||||||
didSet {
|
didSet {
|
||||||
if playerLayer == nil {
|
if playerLayer != nil {
|
||||||
addPlayerLayerObserver()
|
addPlayerLayerObserver()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user