QMedia Movie preview, poster, and pict commands


QM_SetPreviewTime(movieRef; previewStart; previewDuration):error
movieRef Longint Movie reference
previewStart Longint Preview start point
previewDuration Longint Preview duration
error Longint Error result

Sets the preview time of a movie.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL.

Parameter previewStart specifies the starting point of the movie's preview.

Parameter previewDuration specifies the duration of the movie's preview.

Both previewStart and previewDuration must be expressed in the movie's time scale.


  `Set the preview of movie $movieRef to the first 5 seconds
$error:=QM_GetTimeScale ($movieRef;$timeScale)
$error:=QM_SetPreviewTime ($movieRef;$previewStart;$previewDuration)

Related commands

QM_GetPreviewTime Returns the movie's preview time.
QM_SetTrackUsage Specifies the track's usage in the movie.
QM_GetTrackUsage Returns the track's usage in the movie.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:40:40