MediaElement.SetSource method

Expand Minimize
0 out of 4 rated this helpful - Rate this topic

Sets the Source property using the supplied stream.

Syntax


public void SetSource(
  IRandomAccessStream stream, 
  string mimeType
)

Parameters

stream

Type: IRandomAccessStream

The stream that contains the media to load.

mimeType

Type: System.String [.NET] | Platform::String [C++]

The MIME type of the media resource, expressed as the string form typically seen in HTTP headers and requests. The empty string "" can be passed in as the mimeType value if the MIME type is unknown.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

MediaElement

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.