|
@@ -21,7 +21,9 @@
|
|
|
#import "addAudioToPlayListViewController.h"
|
|
|
|
|
|
@interface audioPlayerViewController ()<DFPlayerDelegate,DFPlayerDataSource>
|
|
|
-
|
|
|
+{
|
|
|
+ NSInteger playDelayed;
|
|
|
+}
|
|
|
@property (nonatomic, strong) UIImageView*bgImageView;//中间图片
|
|
|
@property (nonatomic, strong) UIImageView*playImageView;//
|
|
|
@property (nonatomic, strong) CABasicAnimation *rotationAnimation;
|
|
@@ -322,6 +324,7 @@
|
|
|
[self stopRotatingImage];
|
|
|
[self stopPlayingRotateRightImage];
|
|
|
|
|
|
+ playDelayed = 0;
|
|
|
[[DFPlayer sharedPlayer] df_pause];
|
|
|
}
|
|
|
}
|
|
@@ -720,6 +723,11 @@
|
|
|
- (void)df_player:(DFPlayer *)player progress:(CGFloat)progress currentTime:(CGFloat)currentTime{
|
|
|
HLog(@"音频播放进度:%f --- %f",progress,currentTime);
|
|
|
|
|
|
+ playDelayed ++;
|
|
|
+ if(!_playPauseBtn.selected && playDelayed >= 3){
|
|
|
+ _playPauseBtn.selected = YES;
|
|
|
+ }
|
|
|
+
|
|
|
if(_lastAudioIndex != player.currentAudioModel.audioId){
|
|
|
_lastAudioIndex = player.currentAudioModel.audioId;
|
|
|
_index = _lastAudioIndex;
|