GetMovieSelection
The GetMovieSelection function returns information about a movie's current selection.
pascal void GetMovieSelection (Movie theMovie,
TimeValue *selectionTime,
TimeValue *selectionDuration);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
selectionTime
- Contains a pointer to a time value. The
GetMovieSelection function places the starting time of the current selection into the field referred to by this parameter. Set this parameter to nil if you do not want this information.
selectionDuration
- Contains a pointer to a time value. The
GetMovieSelection function places the duration of the current selection into the field referred to by this parameter. Set this parameter to nil if you do not want this information.
ERROR CODES
| invalidMovie | -2010 | This movie is corrupted or invalid |
SEE ALSO
Your application can set the current selection by calling the SetMovieSelection function, which is described in the previous section.