DWAudioPlayView.h 1.38 KB
Newer Older
Han Ruisong's avatar
Han Ruisong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
//  DWAudioPlayView.h
//  Demo
//
//  Created by luyang on 2017/11/9.
//  Copyright © 2017年 com.bokecc.www. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DWAudioPlayViewDelegate <NSObject>

@optional

- (void)audioPlayViewBackAction;

- (void)audioPlayViewDownloadAction;

- (void)audioPlayViewRateAction;

- (void)durationPlayViewSliderMoving;

- (void)playPlayViewBtnAction;

//回退15s
- (void)fallbackPlayViewBtnAction;

//前进15s
- (void)farwardPlayViewBtnAction;


@end



@interface DWAudioPlayView : UIView

@property (nonatomic,strong)UIImageView *imageView;
@property (nonatomic,strong)UIButton *backBtn;

@property (nonatomic,strong)UIButton *downloadBtn;
@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UIButton *farwardBtn;//向前
@property (nonatomic,strong)UIButton *fallbackBtn;//回退
@property (nonatomic,strong)UIView *leftView;
@property (nonatomic,strong)UIView *rightView;

@property (nonatomic,strong)UIButton *playBtn;
@property (nonatomic,strong)UIButton *rateBtn;

@property (nonatomic,strong)UILabel *playLabel;
@property (nonatomic,strong)UILabel *totalLabel;

@property (nonatomic,strong)UISlider *audioSlider;

@property (nonatomic,strong)UIProgressView *progressView;

//滑动条是否滑动
@property (nonatomic,assign,readonly)BOOL isAudioSlidering;


@property (nonatomic,weak)id<DWAudioPlayViewDelegate> delegate;

@end