QMedia
![]() |
![]() ![]() |
QM_GetSelection(movieRef; selectionStart; duration):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
selectionStart | Longint | Selection start |
![]() |
duration | Longint | Selection duration |
![]() |
error | Longint | Error result |
Returns the current selection 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 selectionStart receives the starting point of the movie's current selection.
Parameter selectionDuration receives the duration of the movie's current selection.
Both selectionStart and selectionDuration are expressed in the movie's time scale.
Example
`Get the selection of movie $movieRef C_LONGINT($selStart;$selDuration) $error:=QM_GetSelection ($movieRef;$selStart;$selDuration) |
Related commands
QM_SetSelection | Sets the movie's current selection. |