Skip to content

Commit

Permalink
fix(ios): remove duplicate call on isPlaybackLikelyToKeepUp
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch committed May 10, 2024
1 parent 2bdd64f commit 255dd77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,11 @@ 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>) {
func handlePlaybackLikelyToKeepUp(playerItem _: AVPlayerItem, change: NSKeyValueObservedChange<Bool>) {
if change.newValue == change.oldValue {
return
}

onVideoBuffer?(["isBuffering": false, "target": reactTag as Any])
}

Expand Down

0 comments on commit 255dd77

Please sign in to comment.