Source Property

Gets or sets a media stream source that is not a Smooth Streaming source.

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

Syntax

'Declaration

  Public Property Source As Uri
'Usage

  Dim instance As SmoothStreamingMediaElement
Dim value As Uri

value = instance.Source

instance.Source = value
  public Uri Source { get; set; }
  public:
property Uri^ Source {
    Uri^ get ();
    void set (Uri^ value);
}
  function get Source () : Uri
function set Source (value : Uri)

Property Value

Type: System.Uri
The URI of the stream that is not a Smooth Streaming source.

Remarks

Note

Do not set Source to a URI that contains a query, such as http://domain/MultiAudio.ism/Manifest?foo=axjrjrn1.

If a query is set and the config.xml file includes ResponseCacheEnabled="true" instead of ResponseCacheEnabled="false", the entire URI (including the query) could be persisted in ResponseCache.

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: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

Permissions

See Also

Reference

SmoothStreamingMediaElement Class

Microsoft.Web.Media.SmoothStreaming Namespace