QMedia Movie preview, poster, and pict commands

QM_SetPreviewTime

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.

Example

  `Set the preview of movie $movieRef to the first 5 seconds
 
C_LONGINT($timeScale)
$error:=QM_GetTimeScale ($movieRef;$timeScale)
 
C_LONGINT($previewStart;$previewDuration)
$previewStart:=0
$previewDuration:=$timeScale*5
 
$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