Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following tables list the members exposed by the MediaPlayer type.
Public Properties
Name | Description | |
---|---|---|
![]() ![]() |
GameHasControl | Determines whether the game has control of the background music. |
![]() ![]() |
IsMuted | Gets or set the muted setting for the media player. |
![]() ![]() |
IsRepeating | Gets or sets the repeat setting for the media player. |
![]() ![]() |
IsShuffled | Gets or sets the shuffle setting for the media player. |
![]() ![]() |
IsVisualizationEnabled | Gets or sets the visualization enabled setting for the media player. |
![]() ![]() |
PlayPosition | Gets the play position within the currently playing song. |
![]() ![]() |
Queue | Gets the media playback queue, MediaQueue. |
![]() ![]() |
State | Gets the media playback state, MediaState. |
![]() ![]() |
Volume | Gets or sets the media player volume. |
Public Methods
Name | Description | |
---|---|---|
![]() ![]() |
GetVisualizationData | Retrieves visualization (frequency and sample) data for the currently-playing song. |
![]() ![]() |
MoveNext | Moves to the next song in the queue of playing songs. |
![]() ![]() |
MovePrevious | Moves to the previous song in the queue of playing songs. |
![]() ![]() |
Pause | Pauses the currently playing song. |
![]() ![]() |
Play | Overloaded. Plays a song or collection of songs. |
![]() ![]() |
Resume | Resumes a paused song. |
![]() ![]() |
Stop | Stops playing a song. |
Public Events
Name | Description | |
---|---|---|
![]() ![]() |
ActiveSongChanged | Raised when the active song changes due to active playback or due to explicit calls to the MoveNext or MovePrevious methods. |
![]() ![]() |
MediaStateChanged | Raised when the media player play state changes. |