SmoothStreamingMediaElement.NaturalDuration Property

Gets the duration of the current stream when it plays to the end.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

Syntax

'Declaration

Public ReadOnly Property NaturalDuration As Duration
    Get
'Usage

Dim instance As SmoothStreamingMediaElement
Dim value As Duration

value = instance.NaturalDuration
public Duration NaturalDuration { get; }
public:
property Duration NaturalDuration {
    Duration get ();
}
member NaturalDuration : Duration
function get NaturalDuration () : Duration

Property Value

Type: System.Windows.Duration
The duration of the stream.

Version Information

Silverlight

Supported in: 5

Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

See Also

Reference

SmoothStreamingMediaElement Class

Microsoft.Web.Media.SmoothStreaming Namespace