MoviePlayer.Duration

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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