Update iOS to new state model.
This commit is contained in:
parent
e4789d9cd2
commit
2c3d38f1ad
9 changed files with 153 additions and 129 deletions
|
|
@ -49,7 +49,9 @@
|
|||
}
|
||||
|
||||
- (void)seek:(CMTime)position completionHandler:(void (^)(BOOL))completionHandler {
|
||||
[_playerItem seekToTime:position toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero completionHandler:completionHandler];
|
||||
if (!completionHandler || (_playerItem.status == AVPlayerItemStatusReadyToPlay)) {
|
||||
[_playerItem seekToTime:position toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero completionHandler:completionHandler];
|
||||
}
|
||||
}
|
||||
|
||||
- (CMTime)duration {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue