Share via


SmoothStreamingMediaElement.NaturalVideoWidth Property

Gets the width of video display at which the resource appears best.

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

Syntax

'Declaration

Public ReadOnly Property NaturalVideoWidth As Integer
    Get
'Usage

Dim instance As SmoothStreamingMediaElement
Dim value As Integer

value = instance.NaturalVideoWidth
public int NaturalVideoWidth { get; }
public:
property int NaturalVideoWidth {
    int get ();
}
member NaturalVideoWidth : int
function get NaturalVideoWidth () : int

Property Value

Type: System.Int32
The width of video display at which the resource appears best.

Remarks

To avoid reformatting the display and to avoid unnecessary processor load, do not assign the height and width properties of the SmoothStreamingMediaElement in the XAML specification. Instead, use the dimensions at which the video was encoded.

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