How to start an embedded Quicktime movie in the middle

Opinion
Nov 7, 20072 mins

How can I start an embedded QuickTime movie at some arbitrary place in the movie given that I know the timestamp for the place I want to start at?

You can use JavaScript commands to control the QuickTime player from inside the Web page where you embedded the movie. Suppose your movie is given the name attribute ‘mymovie’ when you embed the movie in the Web page, you can manipulate the movie through JavaScript by invoking things like “document.mymovie.Play()” and “document.mymovie.Stop()”. To start the movie at a specific time other than the beginning, you would use a command that looks like “document.mymovie.SetTime(t)” where t is the time at which to start the movie. You will want to follow the SetTime(t) command with the Play() command because SetTime(t) just moves the pointer to t and does not actually start or stop the movie. Apple QuickTime API documentation is available here. Examples of how to use the QuickTime API functions are available from a number of Web sites. To learn how to include QuickTime content in Flash applications built with Flex, go here. This page is a straightforward description of how to use the basic JavaScript controls for QuickTime from HTML. And go here for information on scripting the COM/ActiveX Quicktime 7 control in Windows using any of a variety of Windows scripting languages.