From Xojo Documentation
Read-Only Property (As Double )
The duration (in seconds) of the currently playing media.
The movie must be playing for this property to hold a value. If no movie is playing, it is set equal to zero.
This example gets the Duration of the movie.