ADC Home > Reference Library > Technical Q&As > QuickTime > QuickTime for Windows >

QuickTime Preview Behavior

Q What's the logic behind the create/update preview behavior in the SFPGetFilePreview dialog? If I create previews for QT movies I sometimes get preview movies and sometimes preview pictures. With QT movies that already have previews I sometimes get an update button and sometimes I get a dimmed create button. What determines the behavior?

AThe expected behavior is this:

PICT files (or files that QuickTime can import as PICT ala the new graphic import components) don't have durations to them so they can only have a preview PICT in the StandardFilePreview dialog. Movies can have both a poster PICT and a movie preview.

In StandardFilePreview, via the preview components, when a movie or PICT file is selected, the preview component will first see if a preview already exists in the file, stored in the 'pnot' resource. The 'pnot' resource also identifies whether the preview is a PICT, a movie, etc. The preview component then compares a timestamp in the 'pnot' resource to the modification date of the selected file to see if the preview is current or not. If the 'pnot' date is older than the last modified date of the file, StandardFilePreview will show the Update button in its dialog (using the 'pmak' components to create the new preview if the user selects this option).

If no 'pnot' resource is found in the selected file and a 'pmak' component exists that can create a preview for the selected file type (QuickTime 2.5 supplies PICT, MOOV, and QTIF 'pmak' components) then the Create button will be active in the StandardFilePreview dialog.

It should be noted that sound files preview in a little different way. The 'pnot' components create an automatic 10-second (if there's that much sound) preview for supported sound file types without needing a 'pnot' resource in the file.

You can read more about Preview Components in Inside Mac:QuickTime Components.

[Nov 27 1996]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.