Merge pull request #771 from alexfoxy/patch-1
Fixed rate not being respected after seeking
This commit is contained in:
commit
3bea966756
@ -576,7 +576,9 @@ static NSString *const timedMetadata = @"timedMetadata";
|
|||||||
if (!_timeObserver) {
|
if (!_timeObserver) {
|
||||||
[self addPlayerTimeObserver];
|
[self addPlayerTimeObserver];
|
||||||
}
|
}
|
||||||
if (!wasPaused) [_player play];
|
if (!wasPaused) {
|
||||||
|
[self setPaused:false];
|
||||||
|
}
|
||||||
if(self.onVideoSeek) {
|
if(self.onVideoSeek) {
|
||||||
self.onVideoSeek(@{@"currentTime": [NSNumber numberWithFloat:CMTimeGetSeconds(item.currentTime)],
|
self.onVideoSeek(@{@"currentTime": [NSNumber numberWithFloat:CMTimeGetSeconds(item.currentTime)],
|
||||||
@"seekTime": [NSNumber numberWithFloat:seekTime],
|
@"seekTime": [NSNumber numberWithFloat:seekTime],
|
||||||
|
Loading…
Reference in New Issue
Block a user