I just want to figure out how to get a video's total time in seconds. Is there video metadata that loads or something?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- How to create a MediaClip from RenderTargetBitmap
- Unable to process app at this time due to a genera
- Safari blocks play() on video despite being called
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- How exactly do Firebase Analytics handle session d
- Open iOS 11 Files app via URL Scheme or some other
MPMoviePlayerController has a property duration (iOS 3.2+):
Why dont you simply use the (NSTimeInterval)duration property to get the videos length??
Get the length of the video in bytes using NSdata. After that calculate how many bytes for playing one second of video. And you can calculate the length of the video:)