Instance Property

duration

The duration of the movie, measured in seconds.

Declaration

var duration: TimeInterval { get }

Discussion

If the duration of the movie is not known, the value in this property is 0.0. If the duration is subsequently determined, this property is updated and a MPMovieDurationAvailable notification is posted.

See Also

Accessing the Movie Duration

var playableDuration: TimeInterval

The amount of currently playable content.

Deprecated