fix(ios): change isPlaybackLikelyToKeepUp check (#3357)
This commit is contained in:
parent
9f1bf8f913
commit
1ba93f9e9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user