diff --git a/RCTVideo.m b/RCTVideo.m index 5a6d80d5..4fc9cf66 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -225,6 +225,11 @@ static NSString *const playbackRate = @"rate"; _player = [AVPlayer playerWithPlayerItem:_playerItem]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; + + if (_playbackRateObserverRegistered) { + [_player removeObserver:self forKeyPath:playbackRate]; + _playbackRateObserverRegistered = NO; + } [_player addObserver:self forKeyPath:playbackRate options:0 context:nil]; _playbackRateObserverRegistered = YES;