Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaSource Class

Provides methods and properties to access the source or sources from which the media will be read.

public sealed class MediaSource

MediaSource provides access to the source or sources from which the media will be read. On Windows Phone, the only available MediaSource is the local device. Windows Media Connect is software that lets you connect your Windows Phone to a computer running Microsoft Windows.

Capabilities for Windows Phone

If you use this API in your Windows Phone app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_MEDIALIBWindows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Windows Phone

Community Additions

© 2018 Microsoft