|
@@ -800,6 +800,8 @@
|
|
[self handleSomeUIFun];
|
|
[self handleSomeUIFun];
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ [DFPlayer sharedPlayer].allAudioDataArray = [_allAudioDataArray mutableCopy];
|
|
|
|
+
|
|
return [_dataArray copy];
|
|
return [_dataArray copy];
|
|
|
|
|
|
//本地音频
|
|
//本地音频
|
|
@@ -865,7 +867,7 @@
|
|
_index = _lastAudioIndex;
|
|
_index = _lastAudioIndex;
|
|
// HLog(@"df_player progress hxd _ind:setTitleFunByIndex");
|
|
// HLog(@"df_player progress hxd _ind:setTitleFunByIndex");
|
|
// [self setTitleFunByIndex];
|
|
// [self setTitleFunByIndex];
|
|
- [self audioPlayerByIndex:_lastAudioIndex];
|
|
|
|
|
|
+ //[self audioPlayerByIndex:_lastAudioIndex];
|
|
|
|
|
|
[self startRotatingImage];
|
|
[self startRotatingImage];
|
|
[self startPlayingRotateRightImage];
|
|
[self startPlayingRotateRightImage];
|
|
@@ -949,28 +951,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-#pragma mark 音频可以播放
|
|
|
|
-- (void)audioPlayerByIndex:(NSInteger)index{
|
|
|
|
- if(index >=0 && index < _allAudioDataArray.count){
|
|
|
|
- NASFileAudioDataModel *dataModel = _allAudioDataArray[index];
|
|
|
|
-
|
|
|
|
- lastFileModel *lastFileMod = [lastFileModel new];
|
|
|
|
- lastFileMod.path = dataModel.path;
|
|
|
|
- lastFileMod.name = dataModel.name;
|
|
|
|
- lastFileMod.time = dataModel.time;
|
|
|
|
- lastFileMod.size = dataModel.size;
|
|
|
|
- lastFileMod.duration = dataModel.duration;
|
|
|
|
- lastFileMod.type = @"audio";
|
|
|
|
- lastFileMod.lastPreTime = [iTools getNowTimeStamp];
|
|
|
|
-
|
|
|
|
- //本地缓存
|
|
|
|
- lastFileMod.localPath = [[audioPlayListManager shareManager] getAudioCacheFullPathBy:dataModel.name];
|
|
|
|
-
|
|
|
|
- [[lastFileManager shareManager] saveFileInfoWith:lastFileMod with:dataModel.path];
|
|
|
|
- [[audioPlayListManager shareManager] saveFileInfoWith:lastFileMod with:dataModel.path];
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
|
|
#pragma mark 图片旋转相关
|
|
#pragma mark 图片旋转相关
|
|
- (void)startRotatingImage {
|
|
- (void)startRotatingImage {
|