YBLookVideoCell.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // YBLookVideoCell.h
  3. // YBVideo
  4. //
  5. // Created by YB007 on 2019/11/7.
  6. // Copyright © 2019 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <ZFPlayer/ZFPlayer.h>
  10. /**
  11. * eventType 回调事件
  12. * eventDic 事件回调信息(例:点赞,这里回调是否已经点赞,以及点赞总数)
  13. */
  14. typedef void (^VideoCellBlock)(NSString *eventType ,NSDictionary *eventDic);
  15. @interface YBLookVideoCell : UICollectionViewCell
  16. @property(nonatomic,copy)VideoCellBlock videoCellEvent;
  17. @property(nonatomic,strong)NSString *fromWhere; //VC来源
  18. @property(nonatomic,strong) UIButton *followBtn; //关注
  19. @property (nonatomic, strong) ZFPlayerController *player;
  20. @property(nonatomic,strong)NSDictionary *dataDic;
  21. @property(nonatomic,strong)UIButton *giftBtn;
  22. -(void)releaseObj:(NSDictionary *)oldDic isBackGround:(BOOL)isBack;
  23. -(void)checkLiveOrAdState:(NSDictionary *)cureentDic;
  24. -(void)startMusicAnimation:(NSDictionary *)startDic;
  25. -(void)stopMusicAnimation:(NSDictionary *)stopDic;
  26. -(void)swipGesGoHome;
  27. -(void)clickLikeBtn;
  28. -(void)updateCommentNums:(NSString *)nums;
  29. -(void)noticeUpdateUI:(NSDictionary *)updateDic;
  30. @end