KZVideoSupport.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //
  2. // KZVideoSupport.h
  3. // KZWeChatSmallVideo_OC
  4. //
  5. // Created by HouKangzhu on 16/7/19.
  6. // Copyright © 2016年 侯康柱. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "KZVideoConfig.h"
  10. @class KZVideoModel;
  11. //************* 录视频 顶部 状态 条 ****************
  12. @interface KZStatusBar : UIView
  13. - (instancetype)initWithFrame:(CGRect)frame style:(KZVideoViewShowType)style;
  14. - (void)addCancelTarget:(id)target selector:(SEL)selector;
  15. @property (nonatomic, assign) BOOL isRecoding;
  16. @end
  17. //************* 关闭的下箭头按钮 ****************
  18. @interface KZCloseBtn : UIButton
  19. @property (nonatomic,strong) NSArray *gradientColors; //CGColorRef
  20. @end
  21. //************* 点击录制的按钮 ****************
  22. @interface KZRecordBtn : UIView
  23. - (instancetype)initWithFrame:(CGRect)frame style:(KZVideoViewShowType)style;
  24. @end
  25. //************* 聚焦的方框 ****************
  26. @interface KZFocusView : UIView
  27. - (void)focusing;
  28. @end
  29. //************* 眼睛 ****************
  30. @interface KZEyeView : UIView
  31. @end
  32. //************* 录视频下部的控制条 ****************
  33. typedef NS_ENUM(NSUInteger, KZRecordCancelReason) {
  34. KZRecordCancelReasonDefault,
  35. KZRecordCancelReasonTimeShort,
  36. KZRecordCancelReasonUnknown,
  37. };
  38. @class KZControllerBar;
  39. @protocol KZControllerBarDelegate <NSObject>
  40. @optional
  41. - (void)ctrollImageDidCapture:(KZControllerBar *)controllerBar;
  42. - (void)ctrollVideoDidStart:(KZControllerBar *)controllerBar;
  43. - (void)ctrollVideoDidEnd:(KZControllerBar *)controllerBar;
  44. - (void)ctrollVideoDidCancel:(KZControllerBar *)controllerBar reason:(KZRecordCancelReason)reason;
  45. - (void)ctrollVideoWillCancel:(KZControllerBar *)controllerBar;
  46. - (void)ctrollVideoDidRecordSEC:(KZControllerBar *)controllerBar;
  47. - (void)ctrollVideoDidClose:(KZControllerBar *)controllerBar;
  48. - (void)ctrollVideoOpenVideoList:(KZControllerBar *)controllerBar;
  49. @end
  50. //************* 录视频下部的控制条 ****************
  51. @interface KZControllerBar : UIView <UIGestureRecognizerDelegate>
  52. @property (nonatomic, assign) id<KZControllerBarDelegate> delegate;
  53. - (void)setupSubViewsWithStyle:(KZVideoViewShowType)style;
  54. @end
  55. //************************* Video List 控件 **************************
  56. //************* 删除视频的圆形叉叉 ****************
  57. @interface KZCircleCloseBtn : UIButton
  58. @end
  59. //************* 视频列表 ****************
  60. @interface KZVideoListCell:UICollectionViewCell
  61. @property (nonatomic, strong) KZVideoModel *videoModel;
  62. @property (nonatomic, strong) void(^deleteVideoBlock)(KZVideoModel *);
  63. - (void)setEdit:(BOOL)canEdit;
  64. @end
  65. //************* 视频列表的添加 ****************
  66. @interface KZAddNewVideoCell : UICollectionViewCell
  67. @end