YBIBVideoData+Internal.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // YBIBVideoData+Internal.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/7/11.
  6. // Copyright © 2019 杨波. All rights reserved.
  7. //
  8. #import "YBIBVideoData.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class YBIBVideoData;
  11. @protocol YBIBVideoDataDelegate <NSObject>
  12. @required
  13. - (void)yb_startLoadingAVAssetFromPHAssetForData:(YBIBVideoData *)data;
  14. - (void)yb_finishLoadingAVAssetFromPHAssetForData:(YBIBVideoData *)data;
  15. - (void)yb_startLoadingFirstFrameForData:(YBIBVideoData *)data;
  16. - (void)yb_finishLoadingFirstFrameForData:(YBIBVideoData *)data;
  17. - (void)yb_videoData:(YBIBVideoData *)data downloadingWithProgress:(CGFloat)progress;
  18. - (void)yb_finishDownloadingForData:(YBIBVideoData *)data;
  19. - (void)yb_videoData:(YBIBVideoData *)data readyForThumbImage:(UIImage *)image;
  20. - (void)yb_videoData:(YBIBVideoData *)data readyForAVAsset:(AVAsset *)asset;
  21. - (void)yb_videoIsInvalidForData:(YBIBVideoData *)data;
  22. @end
  23. @interface YBIBVideoData ()
  24. @property (nonatomic, assign, getter=isLoadingAVAssetFromPHAsset) BOOL loadingAVAssetFromPHAsset;
  25. @property (nonatomic, assign, getter=isLoadingFirstFrame) BOOL loadingFirstFrame;
  26. @property (nonatomic, assign, getter=isDownloading) BOOL downloading;
  27. @property (nonatomic, weak) id<YBIBVideoDataDelegate> delegate;
  28. @end
  29. NS_ASSUME_NONNULL_END