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:
parent
d1883a7e00
commit
2c19a4770d
@ -1631,7 +1631,8 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
}
|
||||
)
|
||||
} else {
|
||||
_playerObserver.removePlayerTimeObserver()
|
||||
_player?.pause()
|
||||
_player?.rate = 0.0
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user