|
|
An HREF track is a special type of text track that adds interactivity to a QuickTime movie. HREF tracks contain URLs that can specify movies that replace the current movie, that load in another frame, or that load in QuickTime Player. They can also specify JavaScript functions or Web pages that load in a specific browser frame or window. An HREF track is not meant to be displayed, unlike other types of text tracks; it simply contains link information. The URLs in an HREF track can be interactive or automatic. An interactive URL loads when you click anywhere in the movie's display area. An automatic URL loads as a movie is playing at the exact frame specified by a text descriptor timestamp in the HREF track. With automatic URLs, you can create a narrated tour of a website, use web pages as slides in a presentation, or do anything else that requires loading movies or web pages in a predetermined sequence. |
Adding an HREF track to a movie is similar to adding a chapter list. Here’s how to do it: | ||||
| | ||||
|
Type a list of URLs into a text editor such as SimpleText, using the HREF syntax described at left. Each text sample line should end with a carriage return. If you want to deactivate the last URL, add a blank URL (an extra carriage return) at the end of the list as described above. Save as a plain text file. | |||
| | ||||
In QuickTime Player, choose Import... from the File menu and select the text file. Click Convert to convert the file to a text movie. | ||||
| | ||||
|
Choose Export... from the File menu. Set the Export pop-up to Text to Text and set the Use: pop-up to Text with Descriptors. Click on the Options... button. In the Text Export Settings dialog, choose the Show Text, Descriptors, and Time option, choose Show Time Relative to Start of Movie, and set fractions of seconds as 1/30 (the default is 1/1000). Click Save to create a text file with descriptors. | |||
| | ||||
You now need to open several windows so you can work with text, tracks, and movie controls at the same time. Open the exported list in your word processor. Open the target movie in QuickTime Player. Open QuickTime Player’s Controls drawer by clicking the button with four dots on it. Finally, choose Get info from QuickTime Player’s Movie menu, choose Movie from the Tracks (left-hand) pop-up, and choose Time from the Properties (right-hand) pop-up. Your screen should look something like the picture to the left. | ||||
| | ||||
In QuickTime Player, find the frame in the movie where you want to load the first URL. Use the frame controls to step forward or backward a frame at a time as needed. Note the time in the Info window. | ||||
| | ||||
In the text file, find the first URL. It has a time stamp just before it that should look something like [00:00:00.000]. Change that to the time you noted in the Info window. Make sure that each URL is given a duration of at least half a second, so that it won’t be skipped if your computers gets behind during playback. | ||||
| | ||||
Continue editing the timestamps preceding each URL, modifying them to match the timestamps of the frames when the URL is to load. Modify the last timestamp in the text file to match the duration of the movie. | ||||
| | ||||
Import the text file into QuickTime Player. This creates a new movie with just a text track. Choose Select All from the File menu, then Copy. Close the movie. | ||||
| | ||||
Click on the main movie. Select All. Add Scaled (by pressing Ctrl-Alt-Shift or Option-Shift, then selecting Add Scaled from the Edit menu). This adds the text track to the movie and makes sure it is exactly the right length. | ||||
| | ||||
|
In the Info window, choose the new text track in the Tracks pop-up. Click Change Name and rename the track HREFTrack exactly as shown (mixed upper and lower case, no space between HREF and Track). | |||
| | ||||
Choose Enable Tracks from the Edit menu and disable the new HREF track, so it doesn’t display on top of the video. It will still function as an HREF track. | ||||
| | ||||
Save as a self-contained movie. | ||||
| | ||||
| More on QuickTime and HREFs
Add a text sample with a blank URL (a simple carriage return) when you want to deactivate any previous URL — for example, at the end of your movie. The optional T<frame> parameter indicates a target frame or target window in the movie. If a target is specified, the URL is loaded into the specified frame or window. One special instance of the T<frame> parameter is T<myself>. This opens the URL directly in QuickTime Player or the QuickTime plug-in. The URL replaces the playing movie. The URL must point to a file type that QuickTime can handle. Use T<myself> to link a series of QuickTime movies into a single virtual movie over the web. Another special instance of the T<frame> parameter is T<quicktimeplayer>. This is normally used to launch a movie in the QuickTime Player application from a movie embedded in a web page. Again, the URL must specify a file or stream that QuickTime can play. | ||||
Home > QuickTime > Tools & Tips > Tutorials > QuickTime Tracks |