fix(ios): change isPlaybackLikelyToKeepUp check (#3357)

This commit is contained in:
Krzysztof Moch 2023-11-17 17:35:22 +01:00 committed by GitHub
parent 9f1bf8f913
commit 1ba93f9e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1224,7 +1224,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
// Continue playing (or not if paused) after being paused due to hitting an unbuffered zone.
func handlePlaybackLikelyToKeepUp(playerItem:AVPlayerItem, change:NSKeyValueObservedChange<Bool>) {
if (!(_controls || _fullscreenPlayerPresented) || _playerBufferEmpty) && ((_playerItem?.isPlaybackLikelyToKeepUp) != nil) {
if (!(_controls || _fullscreenPlayerPresented) || _playerBufferEmpty) && ((_playerItem?.isPlaybackLikelyToKeepUp) == true) {
setPaused(_paused)
}
_playerBufferEmpty = false