The duration of the movie, measured in seconds.
SDKs
- iOS 2.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- Media Player
Declaration
var duration: Time Interval { get }
Discussion
If the duration of the movie is not known, the value in this property is 0
. If the duration is subsequently determined, this property is updated and a MPMovie
notification is posted.