Quicktime Movie Previews

broken image


  1. Quicktime Movie Previews
  2. Quicktime Movie App

View the latest movie trailers for many current and upcoming releases. Many trailers are available in high-quality HD, iPod, and iPhone versions. Rotten Tomatoes, home of the Tomatometer, is the most trusted measurement of quality for Movies & TV. The definitive site for Reviews, Trailers, Showtimes, and Tickets. This article shows you 2 feasible ways to download QuickTime movie trailers from Apple on OS X 10.10 Yosemite, 10.9 Mavericks, 10.8 Mountain Lion, etc. Free download and try it.

Important:This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.

QuickTime includes extensions to the Standard File Package that allow you to create and display file previews, information that gives the user an idea of a file's contents without opening the file. Typically, a file's preview is a small PICT image (called a thumbnail ), but previews may also contain other types of information that is appropriate to the type of file being considered. For example, a text file's preview might tell the user when the file was created and what it discusses. You can use the Image Compression Manager to create thumbnail images.

Standard File Functions

QuickTime provides standard file functions that your application can use to display a file's preview during the Open dialog box. These functions allow your application to support previews automatically.

Note: Before using these new standard file functions, make sure that the Image Compression Manager is installed.

The Movie Toolbox provides two standard file functions that allow you to display file previews in an Open dialog box using standard file reply structures: SFGetFilePreview and SFPGetFilePreview. The SFGetFilePreview function corresponds to the existing SFGetFile function; the SFPGetFilePreview function corresponds to the existing SFPGetFile function.

The SFGetFilePreview function uses the dialog box shown in Figure 8-1. The SFPGetFilePreview function can also use this dialog box, if you do not supply your own.

You use these new functions in place of the existing standard file functions to indicate whether or not you want to allow the user to display previews during the Open dialog box. The user displays a file's preview by selecting a file in the dialog box and clicking Show Preview. When the user does so, the functions display the preview for the file, as shown in Figure 8-2.

The preview area of the dialog box is displayed whenever previewing is enabled.

Customizing Your Interface

If your application requires it, you can customize the user interface for identifying files. The SFGetFilePreview function does not allow you to use a custom dialog box by creating your own dialog template resource. However, the SFPGetFilePreview function does let you access a custom dialog box of any resource type with the dlgID parameter.

Figure 8-3 shows the standard dialog box used by SFPGetFilePreview and SFGetFilePreview. Your dialog box and dialog filter function must support at least these dialog items.

Note: Alter the dialog boxes only if necessary. Apple does not guarantee future compatibility if you use a customized dialog box.

Items to the left of item 13 are visible only when previewing. If you want to define items that are visible only during a file preview, place them to the left of item 13 in your custom dialog box.

If your application defines a custom dialog box, be sure to include the following items in your dialog box definition:

Previewing Files Using Standard File Reply Structures

The Movie Toolbox provides two standard file functions, standardGetFilePreview and CustomGetFilePreview, that allow you to display file previews in an Open dialog box using standard file reply structures (of type StandardFileReply). The StandardGetFilePreview function corresponds to the existing StandardGetFile function; the CustomGetFilePreview function corresponds to the existing CustomGetFile function. Both of these new functions take the same parameters as their existing counterparts.

The StandardGetFilePreview function uses the dialog box shown in Figure 8-4. The CustomGetFilePreview function can also use this dialog box, if you do not supply your own.

You use these new functions in place of the existing standard file functions whenever you want to allow the user to display previews during the Open dialog box. The user causes a file's preview to be displayed by selecting a file in the dialog box and clicking Show Preview. When the user does so, the functions display the preview for the file, as shown in Figure 8-5.

The preview portion of the dialog box is displayed only when the dialog box is showing a file's preview.

The SFGetFilePreview, SFPGetFilePreview, StandardGetFilePreview, and CustomGetFilePreview functions allow the user to automatically convert files to movies if your application requests movies. If there is a file that can be converted into a movie file using a movie import component, then the file is shown in the Standard File dialog box in addition to any movies. When the user selects the file, the Open button changes to a Convert button. Figure 8-6 provides an example of this dialog box.

Brawlhalla 64 bit. Choosing Convert displays a dialog box that allows the user to choose where the converted file should be saved. Figure 8-7 shows this dialog box.

When conversion is complete, the converted file is returned to the calling application as the movie that the user chose. If you want to disable automatic file conversion in your application, you must write a file filter function and pass it to the file preview display function you are using. Your file filter function must call the File Manager's FSpGetFileInfo function on each file that is passed to it to determine its actual file type. If the File System parameter block pointer passed to your file filter function indicates that the file type is 'MooV', and the actual type returned by FSpGetFileInfo is not 'MooV', then the file filter function will convert this file. If you do not wish a file to be displayed as a candidate for conversion, your file filter function should return a value of true when it is called for that file.

A file filter function filters the files that are displayed to the user in a dialog box. You specify this function in the fileFilter parameter of the SFGetFilePreview, StandardGetFilePreview, and CustomGetFilePreview routines. If this parameter is not nil, SFGetFilePreview calls the function for each file to determine whether to display the file to the user. The SFGetFilePreview function supplies you with the information it receives from the File Manager's GetFileInfo routine.

Functions for Creating File Previews

The Movie Toolbox provides two functions that allow you to create file previews. File previews contain information that gives the user an idea of a file's contents without opening the file. Typically, a file's preview is a small PICT image (called a thumbnail ), but previews may also contain other types of information that is appropriate to the type of file being considered. For example, a text file's preview might tell the user when the file was created and what it discusses.

Note: The MakeFilePreview and AddFilePreview functions documented in this section are not listed in the Movies.h interface file; rather, they appear in the ImageCompression.h interface file.

You can use the MakeFilePreview function to create a preview for a file. The AddFilePreview function allows you to add a preview that you have created to a file.

Quicktime Movie Previews

Generating Pictures From Movies

The Movie Toolbox provides a set of functions that allow your application to create QuickDraw pictures from movies, tracks, and posters. This section discusses those functions.

You can use the GetMoviePict function to create a picture from a movie or its preview; you can use the GetTrackPict function to create a picture from a track. The GetMoviePosterPict function lets you create a picture that contains a movie's poster. If a movie or track has no spatial representation, the returned picture is empty (that is, the upper-left and lower-right coordinates are equal).

When memory is low, the GetMoviePict function now reports out of memory errors instead of returning empty pictures.



Copyright © 2005, 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-06-04

Important:This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.

Quicktime Movie Previews

Important This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.

This book covers some of the technology present inside QuickTime movies, including time management, modifier tracks, access keys, posters, and movie and file previews.

Note: This book replaces five previously separate Apple documents: 'Movie Toolbox: Time and Spatial Characteristics,' 'Clock Components,' 'Movie Toolbox: Previews,' 'Movie Toolbox: Access Keys,' and 'Modifier Tracks, Track References, and Alternate Tracks.'

You should read this book if you are going to work with QuickTime movies.

Organization of This Document

This book consists of the following chapters:

Quicktime Movie App

  • Movie Time and Space describes the functions of the movie toolbox that your application will use to manipulate the timebase and spatial characteristics of movies, tracks, and media.

  • Clock Components Overview describes the general features and uses of clock components, and provides diagrams showing the relationship between clock components, applications, and the Movie Toolbox.

  • Movie Clocks, Sound Clocks, and Video Output describes how to set a movie's master clock, how a movie's default clock is chosen, the use of the sound clock, and how to use SetMovieMasterClock with video output components. Owncloud ftp storage support.

  • Clock Component Functions describes the functions which clock components must support, the callback functions that a clock component may optionally support, and functions which QuickTime uses to alert a clock component of changes in the environment. Applications programmers may be interested in the current time function and the callback functions. The other functions are of interest to developers who wish to create new components.

  • Modifier Tracks explains track references and modifier tracks, which create dynamic relationships between tracks in a QuickTime movie. You need to read this chapter if your application programmatically creates movies that contain modifier tracks, effects, filters, transitions, or alternate tracks.

  • Movie Toolbox Access Keys describes QuickTime's mechanism that lets an application that supplies data to register a password for the data with QuickTime and let a user enter the password to gain access to the data.

  • Movie Posters and Movie Previews describes the functions your application can use to work with posters and previews. A poster is a still frame from a movie, while a preview is a short excerpt.

  • Previewing Files describes how to create and display file previews shown as part of the Open File dialog. A file preview is typically a thumbnail image taken from the movie that is displayed in an Open File dialog. Some sample code is included. Read this if you would like to include preview thumbnails of movies.

See Also

The following Apple books cover related aspects of QuickTime programming:

  • QuickTime Overview gives you the starting information you need to do QuickTime programming.

  • QuickTime Movie Basics introduces you to some of the basic concepts you need to understand when working with QuickTime movies.

  • QuickTime Movie Creation Guide describes some of the different ways your application can create a new QuickTime movie.

  • QuickTime Guide for Windows provides information specific to programming for QuickTime on the Windows platform.

  • QuickTime API Reference provides encyclopedic details of all the functions, callbacks, data types and structures, atom types, and constants in the QuickTime API.



Copyright © 2005, 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-06-04





broken image