Unverified Commit 3bea9667 authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Merge pull request #771 from alexfoxy/patch-1

Fixed rate not being respected after seeking
parents ed49ce77 2b934f9e
Loading
Loading
Loading
Loading
+3 −1
Changes for ios/RCTVideo.m: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -576,7 +576,9 @@ static NSString *const timedMetadata = @"timedMetadata";
        if (!_timeObserver) {
          [self addPlayerTimeObserver];
        }
        if (!wasPaused) [_player play];
        if (!wasPaused) {
            [self setPaused:false];
        }
        if(self.onVideoSeek) {
            self.onVideoSeek(@{@"currentTime": [NSNumber numberWithFloat:CMTimeGetSeconds(item.currentTime)],
                               @"seekTime": [NSNumber numberWithFloat:seekTime],