This chapter describes how you can author wired movies and sprite animations using the sprite media handler. You need to be familiar with the material in the previous two chapters, “Chapter 2, QuickTime Sprites, Sprite Animation and Wired Movies,” and “Chapter 3, Sprite Media Handler,” in order to take advantage of the techniques described in this chapter.
You use the functions provided by the sprite media handler to create and manipulate a sprite animation as a track in a QuickTime movie. You can also use the functions provided by the sprite media handler to create and manipulate a wired sprite movie, with various types of user interactivity. The chapter is illustrated with code snippets from the sample program, QTWiredSprites.c, which is listed in full in “Appendix A” of this book.
The chapter is divided into the following major sections:
“Authoring Movies With the Sprite Media Handler” describes how you use the functions provided by the sprite media handler to create and manipulate a sprite animation as a track in a QuickTime movie.
“Authoring Wired Movies” discusses how you use the sprite media handler to create and manipulate a wired sprite movie, with various types of user interactivity.
“Authoring Movies With External Movie Targets” describes how QuickTime enables you to author movies with external movie targets, using two target atoms that were introduced in QuickTime 4.
“Wiring a Movie by Adding an HREF Track” describes how you can wire a QuickTime movie by adding an HREF track to it. An HREF track is a specially named text track that contains hypertext references (HREFs), which are in the form of URLs and can point to any kind of data that a URL can specify, such as a Web page, a QuickTime movie, or a JavaScript script.
“Adding Hypertext Links to a QuickTime Movie With a Text Track” explains how you can add a few wired actions to a movie that has a text track simply by adding a text atom extension of the type kHyperTextTextAtomType to the end of the sample. The programming task is outlined in a series of steps.
For API reference information about the constants and functions available to your application, refer to the QuickTime API Reference, which is available at
http://developer.apple.com/documentation/Quicktime/QuickTime.html |
Last updated: 2002-10-01