Merge pull request #771 from alexfoxy/patch-1

Fixed rate not being respected after seeking
This commit is contained in:
Hampton Maxwell 2018-05-28 20:02:59 -07:00 committed by GitHub
commit 3bea966756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],