mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-31 18:24:59 +00:00
Merge pull request #771 from alexfoxy/patch-1
Fixed rate not being respected after seeking
This commit is contained in:
+3
-1
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user