Share via


SmoothStreamingMediaElement.SetSource Method

Sets the source of the SmoothStreamingMediaElement object.

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

Syntax

'Declaration

Public Sub SetSource ( _
    stream As Stream _
)
'Usage

Dim instance As SmoothStreamingMediaElement
Dim stream As Stream

instance.SetSource(stream)
public void SetSource(
    Stream stream
)
public:
void SetSource(
    Stream^ stream
)
member SetSource : 
        stream:Stream -> unit 
public function SetSource(
    stream : Stream
)

Parameters

Remarks

When you call SetSource(Stream) or assign the SmoothStreamingSource or Source properties, Source is reset to SmoothStreamingSource. However, SmoothStreamingSource is not cleared when reset to a progressive-downloading source.

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