|
@@ -356,8 +356,8 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
|
[_player seekToTime:CMTimeMakeWithSeconds(currentTime, NSEC_PER_SEC) completionHandler:^(BOOL finished) {
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
self->_isSeeking = NO;
|
|
|
-// self.state = MKRAVPlayerStatePlaying;
|
|
|
[self.player play];
|
|
|
+ self.state = MKRAVPlayerStatePlaying;
|
|
|
});
|
|
|
}];
|
|
|
}
|
|
@@ -412,8 +412,8 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
|
}
|
|
|
_currentStatus.totalTime = self.totalTime;
|
|
|
_currentStatus.currentTime = self.currentTime;
|
|
|
-// _currentStatus.totalDuration = self.totalTime;
|
|
|
-// _currentStatus.currentDuration = self.currentTime;
|
|
|
+ _currentStatus.totalDuration = self.totalTime;
|
|
|
+ _currentStatus.currentDuration = self.currentTime;
|
|
|
_currentStatus.isPlaying = [self isPlaying];
|
|
|
_currentStatus.playState = (MKRResourcePlayState)self.state;
|
|
|
return _currentStatus;
|