Any help? Now can get NSSize, duration and its all.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- How to create a MediaClip from RenderTargetBitmap
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Safari blocks play() on video despite being called
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
This functionality may not be built in (I'm honestly not sure), but I do know of two third-party libraries which can tell you the information you need.
I can go into more depth with how to use either of these, but I'd rather only do so if you end up needing me to. Let me know!
You can do this almost entirely using Spotlight's metadata.
For example, I do the following in one of my apps
This code essentially asks for the pixel width and height for a movie file (to determine if it's the dimension of an HD movie or not is the reason).
The Spotlight Metadata Attributes Reference lists all the available keys for various file types by category. You can probably get the required data this way without doing anything significant, provided that the media type you're examining has a Spotlight plug-in.