Skip to content

Commit

Permalink
fix(iOS): pause video on end reached & don't remove listeners (#4218)
Browse files Browse the repository at this point in the history
This fixes an issue when seeking back to the beginning results in
no `onProgress` events being fired.
  • Loading branch information
sharnik authored Oct 7, 2024
1 parent d1883a7 commit 2c19a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,8 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
}
)
} else {
_playerObserver.removePlayerTimeObserver()
_player?.pause()
_player?.rate = 0.0
}
}

Expand Down

0 comments on commit 2c19a47

Please sign in to comment.