Class MediaPlayer
public static class MediaPlayer
- Inheritance
-
MediaPlayer
- Inherited Members
Properties
GameHasControl
public static bool GameHasControl { get; }
Property Value
IsMuted
public static bool IsMuted { get; set; }
Property Value
IsRepeating
public static bool IsRepeating { get; set; }
Property Value
IsShuffled
public static bool IsShuffled { get; set; }
Property Value
IsVisualizationEnabled
public static bool IsVisualizationEnabled { get; }
Property Value
PlayPosition
public static TimeSpan PlayPosition { get; }
Property Value
Queue
public static MediaQueue Queue { get; }
Property Value
State
public static MediaState State { get; }
Property Value
Volume
public static float Volume { get; set; }
Property Value
Methods
MoveNext()
public static void MoveNext()
MovePrevious()
public static void MovePrevious()
Pause()
public static void Pause()
Play(Song)
Play clears the current playback queue, and then queues up the specified song for playback. Playback starts immediately at the beginning of the song.
public static void Play(Song song)
Parameters
song
Song
Play(Song, TimeSpan?)
Play clears the current playback queue, and then queues up the specified song for playback. Playback starts immediately at the given position of the song.
public static void Play(Song song, TimeSpan? startPosition)
Parameters
Play(SongCollection, int)
public static void Play(SongCollection collection, int index = 0)
Parameters
collection
SongCollectionindex
int
Resume()
public static void Resume()
Stop()
public static void Stop()
Events
ActiveSongChanged
public static event EventHandler<EventArgs> ActiveSongChanged
Event Type
MediaStateChanged
public static event EventHandler<EventArgs> MediaStateChanged