YOUPAILZSoundRecordView.h 946 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // YOUPAILZSoundRecordView.h
  3. // MSYOUPAI
  4. //
  5. // Created by CY on 2022/3/16.
  6. // Copyright © 2022 MS. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "YOUPAILZSoundRecordHeader.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface YOUPAILZSoundRecordView : UIView
  12. @property (nonatomic, assign) NSInteger youpaipminTimer; // 最少时长
  13. @property (nonatomic, assign) NSInteger youpaipmaxTimer; // 最大时长
  14. @property (nonatomic, assign) LZAudioType youpaiptype; // 需要转出的文件格式
  15. @property (nonatomic, weak)UILabel *youpaipdescL;
  16. //@property (nonatomic, weak)UIButton *youpaipleftBtn;
  17. @property (nonatomic, weak)UIButton *youpaiprecordBtn;
  18. @property (nonatomic, weak)UIButton *youpaipreRecordBtn;
  19. @property (nonatomic,assign)NSInteger youpaipaudioTime; // 录音长度
  20. - (NSURL *)youpaiprecordAudioUrl;
  21. /// 获取提交url
  22. - (NSURL*)getSubmitSound;
  23. /// 停止录音
  24. - (void)youpaifstopSoundRecord;
  25. @end
  26. NS_ASSUME_NONNULL_END