33 lines
613 B
Objective-C
33 lines
613 B
Objective-C
//
|
|
// AudioPlayerView.h
|
|
// Meet
|
|
//
|
|
// Created by mambaxie on 2021/1/3.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface AudioPlayerView : UIView
|
|
|
|
- (void)updateWithAudioUrl:(NSString *)audioUrl seconds:(NSInteger)seconds;
|
|
|
|
@property (nonatomic, strong) UIImageView *voiceImageView;
|
|
|
|
@property (nonatomic, strong) UILabel *secondLabel;
|
|
|
|
@property (nonatomic, strong) NSString *audioUrl;
|
|
|
|
@property (nonatomic, assign) NSInteger seconds;
|
|
|
|
@property (nonatomic, strong) BOOL(^checkCanPlay)(AudioPlayerView *view);
|
|
|
|
+ (void)stopPlay;
|
|
|
|
+ (AudioPlayerView *)playingView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|