QMedia
![]() |
![]() ![]() |
QM_GetPreviewTime(movieRef; previewStart; previewDuration):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
previewStart | Longint | Preview start point |
![]() |
previewDuration | Longint | Preview duration |
![]() |
error | Longint | Error result |
Returns 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 receives the starting point of the movie's preview.
Parameter previewDuration receives the duration of the movie's preview.
Both previewStart and previewDuration are expressed in the movie's time scale.
Example
`Get the preview time of movie $movieRef C_LONGINT($previewStart;$previewDuration) $error:=QM_GetPreviewTime ($movieRef;$previewStart;$previewDuration) |
Related commands
QM_SetPreviewTime | Sets 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. |