Search code examples
c#windows-phone-7windows-phone-8media-player

How to get the MediaPlayer Queue


In my application I am using the MediaPlayer to play a selection of songs, however it would be good to be able to get the songs that are going to be played next and display them to the user, either for information, or so they can jump several songs in the queue.

So how can I get a list of the Songs that are coming up in the MediaPlayer queue? So that I can have a list of them which can be displayed to the user, in some sort of container, probably a ListBox.

I have tried using MediaPlayerQueue however this operator doesn't seem to have any form of functionality?

Thank you for your time and help.


Solution

  • media player in windows phone 7 displaying next song

    MediaPlayer.Queue[n]
    

    will give you the required Song instance