TCVideoLoadingController.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // VideoLoadingController.h
  3. // TCLVBIMDemo
  4. //
  5. // Created by annidyfeng on 2017/4/17.
  6. // Copyright © 2017年 tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Photos/Photos.h>
  10. typedef NS_ENUM(NSInteger,AssetType){
  11. AssetType_Video,
  12. AssetType_Image,
  13. };
  14. typedef NS_ENUM(NSInteger,ComposeMode){
  15. ComposeMode_Edit,
  16. ComposeMode_Join,
  17. ComposeMode_Upload,
  18. };
  19. @interface TCVideoLoadingController : UIViewController
  20. @property ComposeMode composeMode;
  21. - (void)exportAssetList:(NSArray *)assets assetType:(AssetType)assetType;
  22. @end
  23. @interface PHAsset (My)
  24. - (NSString *)orignalFilename;
  25. @end
  26. typedef enum {
  27. LBVideoOrientationUp, //Device starts recording in Portrait
  28. LBVideoOrientationDown, //Device starts recording in Portrait upside down
  29. LBVideoOrientationLeft, //Device Landscape Left (home button on the left side)
  30. LBVideoOrientationRight, //Device Landscape Right (home button on the Right side)
  31. LBVideoOrientationNotFound = 99 //An Error occurred or AVAsset doesn't contains video track
  32. } LBVideoOrientation;
  33. @interface AVAsset (My)
  34. /**
  35. Returns a LBVideoOrientation that is the orientation
  36. of the iPhone / iPad whent starst recording
  37. @return A LBVideoOrientation that is the orientation of the video
  38. */
  39. @property (nonatomic, readonly) LBVideoOrientation videoOrientation;
  40. @end