QMedia Movie properties commands |

### QM_GetActiveSegment

QM_GetActiveSegment(movieRef; activeSegStart; activeSegDuration):error
| movieRef | Longint | Movie reference
| activeSegStart | Longint | Active segment start
| activeSegDuration | Longint | Active segment duration
| error | Longint | Error result

Returns the active segment 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 activeSegStart receives the starting point of the movie's active segment.

Parameter activeSegDuration receives the duration of the movie's active segment.

Both activeSegStart and activeSegDuration are expressed in the movie's time scale.

If the entire movie is active, activeSegStart is set to -1 and activeSegDuration is set to 0.

Example

``Get the active segment of movie $movieRef` `` `C_LONGINT($activeStart;$activeDuration)` `` `$error:=QM_GetActiveSegment ($movieRef;$activeStart;$activeDuration)` ``

Related commands

QM_SetActiveSegment | Changes the active segment of a movie.

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