QMedia Movie properties commands |

### QM_SetSelection

QM_SetSelection(movieRef; selectionStart; selectionDuration):error
| movieRef | Longint | Movie reference
| selectionStart | Longint | Selection start
| selectionDuration | Longint | Selection duration
| error | Longint | Error result

Sets 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 specifies the starting point of the movie's current selection.

Parameter selectionDuration specifies the duration of the movie's current selection.

Both selectionStart and selectionDuration must be expressed in the movie's time scale.

Example

``Set the selection of movie $movieRef to the first 5 seconds` `` `C_LONGINT($timeScale)` `$error:=QM_GetTimeScale ($movieRef;$timeScale)` `` `C_LONGINT($selStart;$selDuration)` `$selStart:=0` `$selDuration:=$timeScale*5` `` `$error:=QM_SetSelection ($movieRef;$selStart;$selDuration)` ``

Related commands

QM_GetSelection | Returns the movie's current selection.

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