Fixed rate not being respected after seeking
Referenced in issue => https://github.com/react-native-community/react-native-video/issues/763
This commit is contained in:
		| @@ -561,7 +561,9 @@ static NSString *const timedMetadata = @"timedMetadata"; | ||||
|     if (CMTimeCompare(current, cmSeekTime) != 0) { | ||||
|       if (!wasPaused) [_player pause]; | ||||
|       [_player seekToTime:cmSeekTime toleranceBefore:tolerance toleranceAfter:tolerance completionHandler:^(BOOL finished) { | ||||
|         if (!wasPaused) [_player play]; | ||||
|         if (!wasPaused) { | ||||
|             [self setPaused:false]; | ||||
|         } | ||||
|         if(self.onVideoSeek) { | ||||
|             self.onVideoSeek(@{@"currentTime": [NSNumber numberWithFloat:CMTimeGetSeconds(item.currentTime)], | ||||
|                                @"seekTime": [NSNumber numberWithFloat:seekTime], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user