From 522af9eaa7d1b4e013a5bd835c1439f7f92d0ee4 Mon Sep 17 00:00:00 2001 From: redspear Date: Mon, 28 Sep 2020 09:56:06 +1000 Subject: [PATCH] Bugfix: #1930 --- ios/Video/RCTVideo.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index 8780f48f..a26c1bdd 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -718,7 +718,10 @@ static int const RCTVideoUnset = -1; } } else if (object == _player) { if([keyPath isEqualToString:playbackRate]) { - if(self.onPlaybackRateChange) { + if (_player.rate > 0 && _rate > 0 && _player.rate != _rate) { + // Playback is resuming, apply rate modifer. + [_player setRate:_rate]; + } else if(self.onPlaybackRateChange) { self.onPlaybackRateChange(@{@"playbackRate": [NSNumber numberWithFloat:_player.rate], @"target": self.reactTag}); }