|
@@ -622,7 +622,6 @@
|
|
|
|
|
|
//首次进来 //需要判断原来的播放列表中是否存在音频
|
|
|
if(_isfirstEnterType){
|
|
|
- _isfirstEnterType = NO;
|
|
|
|
|
|
//把外面传入的音频作为第一次传入
|
|
|
NASFileAudioDataModel *yourModel = _outSideDataModel;
|
|
@@ -696,14 +695,7 @@
|
|
|
#pragma mark - DFPlayer delegate
|
|
|
//加入播放队列
|
|
|
- (void)df_playerAudioAddToPlayQueue:(DFPlayer *)player{
|
|
|
- // [self tableViewReloadData];
|
|
|
- // dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
|
- // dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
- // self.navigationItem.title = player.currentAudioInfoModel.audioName;
|
|
|
- // self->_bgView.image = [self getBackgroundImage:player.currentAudioInfoModel.audioImage];
|
|
|
- // self->_noticeLabel.text = player.currentAudioInfoModel.audioLyrics ? @"" : @"无可用歌词";
|
|
|
- // });
|
|
|
- // });
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//缓冲进度代理
|
|
@@ -763,11 +755,13 @@
|
|
|
[self setTitleFunByIndex];
|
|
|
[[DFPlayer sharedPlayer] df_reloadData];//需在传入数据源后调用
|
|
|
|
|
|
-
|
|
|
- KWeakSelf
|
|
|
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
- [weakSelf playAudioFun];
|
|
|
- });
|
|
|
+ if(_isfirstEnterType){
|
|
|
+ KWeakSelf
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ [weakSelf playAudioFun];
|
|
|
+ });
|
|
|
+ _isfirstEnterType = NO;
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|