UGCKitVideoInfo.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2019 Tencent. All rights reserved.
  2. #import <Foundation/Foundation.h>
  3. #import "UGCKitVideoPasterView.h"
  4. #import "UGCKitVideoTextFiled.h"
  5. typedef NS_ENUM(NSInteger,UGCKitPasterInfoType)
  6. {
  7. UGCKitPasterInfoType_Animate,
  8. UGCKitPasterInfoType_static,
  9. };
  10. @interface UGCKitVideoInfo : NSObject
  11. @property (nonatomic, assign) CGFloat startTime; //in seconds
  12. @property (nonatomic, assign) CGFloat endTime; //in seconds
  13. @end
  14. @interface UGCKitVideoPasterInfo : UGCKitVideoInfo
  15. @property (nonatomic, assign) UGCKitPasterInfoType pasterInfoType;
  16. @property (nonatomic, strong) UGCKitVideoPasterView* pasterView;
  17. @property (nonatomic, strong) UIImage *iconImage;
  18. //动态贴纸
  19. @property (nonatomic, strong) NSString *path; //动态贴纸需要文件路径 -> SDK
  20. @property (nonatomic, assign) CGFloat rotateAngle; //动态贴纸需要传入旋转角度 -> SDK
  21. //静态贴纸
  22. @property (nonatomic, strong) UIImage *image; //静态贴纸需要贴纸Image -> SDK
  23. @end
  24. @interface UGCKitVideoTextInfo : UGCKitVideoInfo
  25. @property (nonatomic, strong) UGCKitVideoTextFiled* textField;
  26. @end