Skip to content

Commit

Permalink
Merge pull request #4 from fenderdigital/seek_accuracy
Browse files Browse the repository at this point in the history
sample-accurate seeking
  • Loading branch information
bennettk authored Apr 30, 2018
2 parents 3f1ba2c + f12080f commit 4e6e7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ - (void)setSeek:(float)seekTime

CMTime cmSeekTime = CMTimeMakeWithSeconds(seekTime, timeScale);
CMTime current = item.currentTime;
// TODO figure out a good tolerance level
CMTime tolerance = CMTimeMake(1000, timeScale);

CMTime tolerance = kCMTimeZero;
BOOL wasPaused = _paused;

if (CMTimeCompare(current, cmSeekTime) != 0) {
Expand Down

0 comments on commit 4e6e7f3

Please sign in to comment.