Table of Contents

Class MediaQueue

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

Provides methods and properties to access and control the queue of playing songs.

public sealed class MediaQueue
Inheritance
MediaQueue
Inherited Members

Remarks

MediaQueue is a read-only queue of songs. With MediaQueue, you can control which song is playing in the queue, but you cannot add or remove songs from the queue. Either MediaPlayer.Play(Song) or the songs already queued up when the game starts determine the songs that are in the queue of playing songs.

Constructors

MediaQueue()

Creates a new instance of MediaQueue.

public MediaQueue()

Properties

ActiveSong

Gets the current Song in the queue of playing songs.

public Song ActiveSong { get; }

Property Value

Song

ActiveSongIndex

Gets or sets the index of the current (active) song in the queue of playing songs.

public int ActiveSongIndex { get; set; }

Property Value

int

Remarks

Changing the active song index does not alter the current media state (playing, paused, or stopped).

this[int]

Gets the Song at the specified index in the MediaQueue

public Song this[int index] { get; }

Parameters

index int

Property Value

Song