|
@@ -417,9 +417,7 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
nextIndex = [self _caculateNextIndex:self.currentIndex];
|
|
nextIndex = [self _caculateNextIndex:self.currentIndex];
|
|
shouldAutoNext = [self.delegate didFinishPlayWillAutoNext:nextIndex];
|
|
shouldAutoNext = [self.delegate didFinishPlayWillAutoNext:nextIndex];
|
|
}
|
|
}
|
|
- if (self.delegate && [self.delegate respondsToSelector:@selector(didFinishPlay:)]) {
|
|
|
|
- [self.delegate didFinishPlay:self.currentIndex];
|
|
|
|
- }
|
|
|
|
|
|
+ NSInteger finishIndex = self.currentIndex;
|
|
if (shouldAutoNext) {
|
|
if (shouldAutoNext) {
|
|
[self nextWhenPlayDidEnd];
|
|
[self nextWhenPlayDidEnd];
|
|
}else{
|
|
}else{
|
|
@@ -434,6 +432,9 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
self.playUrl = MKRUrlWithString(url);
|
|
self.playUrl = MKRUrlWithString(url);
|
|
self.state = MKRAVPlayerStateStopped;
|
|
self.state = MKRAVPlayerStateStopped;
|
|
}
|
|
}
|
|
|
|
+ if (self.delegate && [self.delegate respondsToSelector:@selector(didFinishPlay:)]) {
|
|
|
|
+ [self.delegate didFinishPlay:self.currentIndex];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
#pragma mark - setter
|
|
#pragma mark - setter
|