Table of Contents

Class MediaSource

Namespace
Microsoft.Xna.Framework.Media
Assembly
MonoGame.Framework.dll

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

public sealed class MediaSource
Inheritance
MediaSource
Inherited Members

Remarks

MediaSource provides access to the source or sources from which the media will be read. A source can be either the local device, or a device connected through Windows Media Connect.

Properties

MediaSourceType

Gets the MediaSourceType of this media source.

public MediaSourceType MediaSourceType { get; }

Property Value

MediaSourceType

Name

Gets the name of this media source.

public string Name { get; }

Property Value

string

Methods

GetAvailableMediaSources()

Gets the available media sources with which a media library can be constructed.

public static IList<MediaSource> GetAvailableMediaSources()

Returns

IList<MediaSource>

This method will always return a single media source: the local device.