QMedia Movie time commands |

### QM_GetDuration

QM_GetDuration(movieRef; movieDuration):error
| movieRef | Longint | Movie reference
| movieDuration | Longint | Movie duration
| error | Longint | Error result

Returns the duration 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 movieDuration receives the movie's duration. The movie's duration is expressed in the movie's time scale.

Example

``Get the duration of movie $movieRef in seconds` `` `C_LONGINT($timeScale)` `$error:=QM_GetTimeScale ($movieRef;$timeScale)` `` `C_LONGINT($duration)` `$error:=QM_GetDuration ($movieRef;$duration)` `` `C_LONGINT($durationInSeconds)` `$durationInSeconds:=$duration/$timeScale` ``

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