Skip to content

Commit

Permalink
fix: frame accurate seekTo on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
najeira committed Aug 22, 2018
1 parent 532fa87 commit 5d7ec7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/Classes/VideoPlayerPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ - (int64_t)duration {
}

- (void)seekTo:(int)location {
[_player seekToTime:CMTimeMake(location, 1000)];
[_player seekToTime:CMTimeMake(location, 1000)
toleranceBefore:kCMTimeZero
toleranceAfter:kCMTimeZero];
}

- (void)setIsLooping:(bool)isLooping {
Expand Down

0 comments on commit 5d7ec7d

Please sign in to comment.