HMVideoView.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // HMVideoView.h
  3. // BuguLive
  4. //
  5. // Created by 范东 on 2018/12/27.
  6. // Copyright © 2018 xfg. All rights reserved.
  7. // 包含三个视频的View
  8. #import "BGBaseView.h"
  9. #import "HMVideoViewModel.h"
  10. #import "HMVideoControlView.h"
  11. #import "HMCommentView.h"
  12. #import "HMVideoPlayer.h"
  13. @class HMVideoView;
  14. NS_ASSUME_NONNULL_BEGIN
  15. @protocol HMVideoViewDelegate <NSObject>
  16. - (void)videoViewDidClickOneOnOne:(HMVideoView *)videoView;
  17. - (void)controlViewDidClickSelf:(HMVideoView *)videoView;
  18. - (void)videoViewDidClickRecharge:(HMVideoView *)videoView;
  19. - (void)videoViewDidClickReport:(HMVideoView *)videoView;
  20. - (void)deleteVideoWithView:(HMVideoView *)videoView;
  21. @end
  22. @interface HMVideoView : BGBaseView
  23. @property (nonatomic, weak) id<HMVideoViewDelegate>delegate;
  24. @property (nonatomic, strong) HMVideoViewModel *viewModel;
  25. @property (nonatomic, strong) HMVideoControlView *currentPlayView; //当前播放的View
  26. @property (nonatomic, strong) HMCommentView *commentView; //评论列表
  27. @property (nonatomic, strong) HMVideoPlayer *player;
  28. @property (nonatomic, strong) GiftView *giftView;
  29. @property(nonatomic, assign) BOOL isRecommend;
  30. @property (nonatomic, strong) UIScrollView *scrollView;
  31. @property(nonatomic, copy) void (^isRefreshVideoBlock)(BOOL isRefresh);
  32. @property(nonatomic, copy) void (^clickHeadBlock)(NSString *userID);
  33. - (instancetype)initWithVC:(UIViewController *)vc isPushed:(BOOL)isPushed requestDict:(NSDictionary *)dict;
  34. - (void)setModels:(NSArray *)models index:(NSInteger)index;
  35. -(void)deleteViewModel;
  36. - (void)pause;
  37. - (void)resume;
  38. - (void)destoryPlayer;
  39. - (void)playVideoFrom:(HMVideoControlView *)fromView;
  40. - (void)clickShareViewReportBtn;
  41. -(void)hiddenGiftView;
  42. @end
  43. NS_ASSUME_NONNULL_END