Share via


SmoothStreamingMediaElement.AutoPlay Property

Gets or sets a value that specifies whether the media element starts automatically.

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

Syntax

'Declaration

Public Property AutoPlay As Boolean
    Get
    Set
'Usage

Dim instance As SmoothStreamingMediaElement
Dim value As Boolean

value = instance.AutoPlay

instance.AutoPlay = value
public bool AutoPlay { get; set; }
public:
property bool AutoPlay {
    bool get ();
    void set (bool value);
}
member AutoPlay : bool with get, set
function get AutoPlay () : boolean
function set AutoPlay (value : boolean)

Property Value

Type: System.Boolean
true if the media element starts automatically; otherwise, false.

Remarks

For more information and for examples, see Microsoft Smooth Streaming Client 2.0.

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