fix(iOS): pause video on end reached & don't remove listeners (#4218)

This fixes an issue when seeking back to the beginning results in
no `onProgress` events being fired.
This commit is contained in:
Wojciech Ogrodowczyk 2024-10-07 14:32:35 +02:00 committed by GitHub
parent d1883a7e00
commit 2c19a4770d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1631,7 +1631,8 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
}
)
} else {
_playerObserver.removePlayerTimeObserver()
_player?.pause()
_player?.rate = 0.0
}
}