Guest User

Untitled

a guest
Jul 26th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. //
  2. // AVAsset+VideoOrientation.h
  3. //
  4. // Created by Luca Bernardi on 19/09/12.
  5. // Copyright (c) 2012 Luca Bernardi. All rights reserved.
  6. //
  7. #import <AVFoundation/AVFoundation.h>
  8.  
  9. typedef enum {
  10. LBVideoOrientationUp, //Device starts recording in Portrait
  11. LBVideoOrientationDown, //Device starts recording in Portrait upside down
  12. LBVideoOrientationLeft, //Device Landscape Left (home button on the left side)
  13. LBVideoOrientationRight, //Device Landscape Right (home button on the Right side)
  14. LBVideoOrientationNotFound = 99 //An Error occurred or AVAsset doesn't contains video track
  15. } LBVideoOrientation;
  16.  
  17. @interface AVAsset (VideoOrientation)
  18.  
  19. /**
  20. Returns a LBVideoOrientation that is the orientation
  21. of the iPhone / iPad whent starst recording
  22.  
  23. @return A LBVideoOrientation that is the orientation of the video
  24. */
  25. @property (nonatomic, readonly) LBVideoOrientation videoOrientation;
  26.  
  27. @end
Add Comment
Please, Sign In to add comment