MoviePlayer.Duration

From Xojo Documentation

Read-Only Property (As Double )
DoubleValue = aMoviePlayer.Duration

New in 2007r4

Supported for all project types and targets.

The duration (in seconds) of the currently playing media.

Notes

The movie must be playing for this property to hold a value. If no movie is playing, it is set equal to zero.

Example

This example gets the Duration of the movie.

Var duration As Double = MoviePlayer1.Duration