SetSource Method
Collapse the table of content
Expand the table of content

MediaElement.SetSource Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Sets the source of a MediaElement.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Public method SetSource(MediaStreamSource) This sets the source of a MediaElement to a subclass of MediaStreamSource.
Public method SetSource(Stream) Sets the Source property using the supplied stream.

© 2017 Microsoft