QMedia
![]() |
![]() |
QM_GetCurrentTime(movieRef; currentTime):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
currentTime | Longint | Current time |
![]() |
error | Longint | Error result |
Returns the current 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 currentTime receives the movie's current time, which is expressed in the movie's time scale.
Example
`Get the current of movie $movieRef in seconds C_LONGINT($timeScale) $error:=QM_GetTimeScale ($movieRef;$timeScale) C_LONGINT($curTime) $error:=QM_GetCurrentTime ($movieRef;$curTime) C_LONGINT($curTimeInSeconds) $curTimeInSeconds:=$curTime/$timeScale |
Related commands
QM_SetCurrentTime | Sets the movie's current time. |