|
@@ -104,6 +104,14 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
|
return [self initWithPlayList:urls playMode:playMode];
|
|
|
}
|
|
|
|
|
|
+- (void)updatePlayList:(NSArray<NSString *> *)playList{
|
|
|
+ self.playList = playList;
|
|
|
+ NSUInteger index = [playList indexOfObject:self.playUrl.absoluteString];
|
|
|
+ if (index != NSNotFound) {
|
|
|
+ self.currentIndex = index;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - 播放相关
|
|
|
|
|
|
- (void)play{
|