NaturalDuration Property
Gets the natural duration of the media.
XAML |
Cannot be used in XAML.
|
Scripting |
value = object.NaturalDuration
|
Property Value
The natural duration of the media.
This property is read-only. The default value is Automatic, which is the value held if you query this property before MediaOpened.
Remarks
The property value is not available until the MediaOpened event has been raised.
If the opened media is live streaming media, NaturalDuration is null.
Once you have the Duration, you can get its Seconds value.