XG_MediaCell.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // XG_MediaCell.h
  3. // MyApp
  4. //
  5. // Created by huxinguang on 2018/10/30.
  6. // Copyright © 2018年 huxinguang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "FLAnimatedImage.h"
  10. #import "XG_PlayerManager.h"
  11. @class XG_AssetModel;
  12. @class BottomBar;
  13. @interface XG_MediaCell : UICollectionViewCell
  14. @property (nonatomic, strong) XG_AssetModel *item;
  15. @property (nonatomic, strong) UIScrollView *scrollView;
  16. @property (nonatomic, strong) UIView *mediaContainerView;//用于动画
  17. @property (nonatomic, strong) FLAnimatedImageView *imageView;
  18. @property (nonatomic, strong) UIButton *playBtn;
  19. @property (nonatomic, strong) BottomBar *bottomBar;
  20. @property (nonatomic, assign) BOOL sliderIsSliding;
  21. - (void)resizeSubviewSize;
  22. - (void)showOrHidePlayerControls;
  23. - (void)pauseAndResetPlayer;
  24. - (void)pausePlayer;
  25. @end
  26. @protocol BottomBarDelegate;
  27. @interface BottomBar: UIView
  28. @property (nonatomic, strong) UISlider *slider;
  29. @property (nonatomic, strong) UILabel *leftTimeLabel;
  30. @property (nonatomic, strong) UILabel *rightTimeLabel;
  31. @property (nonatomic, weak) id<BottomBarDelegate> delegate;
  32. @end
  33. @protocol BottomBarDelegate<NSObject>
  34. - (void)sliderDidSlide;
  35. - (void)slideDidEndWithValue:(float)value;
  36. @end