MediaPlayerΒΆ
-
class
MediaPlayer: System.Object -
readonly MediaQueue
Queue
-
bool
IsMuted
-
bool
IsRepeating
-
bool
IsShuffled
-
readonly bool
IsVisualizationEnabled
-
readonly System.TimeSpan
PlayPosition
-
readonly MediaState
State
-
readonly bool
GameHasControl
-
float
Volume
-
public void
add_ActiveSongChanged(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_ActiveSongChanged(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_MediaStateChanged(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_MediaStateChanged(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
Pause()
-
public void
Play(Song 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.
Parameters: - song (Microsoft.Xna.Framework.Media.Song) –
-
public void
Play(Song song, System.Nullable<TimeSpan> startPosition) 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.
Parameters: - song (Microsoft.Xna.Framework.Media.Song) –
- startPosition (System.Nullable<TimeSpan>) –
-
public void
Play(SongCollection collection, int index) Parameters: - collection (Microsoft.Xna.Framework.Media.SongCollection) –
- index (int) –
-
void
OnSongFinishedPlaying(System.Object sender, System.EventArgs args) Parameters: - sender (System.Object) –
- args (System.EventArgs) –
-
public void
Resume()
-
public void
Stop()
-
public void
MoveNext()
-
public void
MovePrevious()
-
readonly MediaQueue