开发者

What are OS Types for video formats other than MooV in Cocoa?

开发者 https://www.devze.com 2023-02-04 20:20 出处:网络
I\'ve followed this tutorial to get a Cocoa application that plays mov files in a window using the QuickTime Movie View control. This documentation page says that QTKit supports other file formats suc

I've followed this tutorial to get a Cocoa application that plays mov files in a window using the QuickTime Movie View control. This documentation page says that QTKit supports other file formats such as AVI and MPEG-4. I'm not 开发者_运维知识库able to open files of that type from the File>Open... dialog though.

I have a hunch that I just have to add the right Document Type to my target and then the Open... dialog will allow me to open AVI files, but I don't know what to put in the OS Type field. Am I on the right track? Where can I get a list of a bunch of possible OS Types for video formats?

Bonus: What does MooV stand for anyway, some sort of cow movie?


As documented in the Information Property List Key Reference, CFBundleTypeOSTypes (OS Types) has been deprecated as of Mac OS 10.5. You (and that tutorial) should be using Uniform Type Identifiers (UTIs) instead.

Apple provide a list of system-declared Uniform Type Identifiers (UTIs). For instance, AVI and MPEG-4 files are identified by the public.avi and public.mpeg-4 UTIs, both of which conform to the public.movie UTI.

0

精彩评论

暂无评论...
验证码 换一张
取 消