Search code examples
media-playerwindows-phone

backward forward windows phone 7 music player


What method is used to do backward forward for mediaplayer in windows phone 7. Also how to present the progress bar for current song? I have look all over Microsoft.Xna.Framework.Media Namespace but couldn't find any method to use. Any one have suggestion?


Solution

  • Is this for a XNA game or a regular application? By adding a playlist to the regular player, using the MediaHistory class you can use the build-in controls of the phone. Also to obtain the current position, use the MediaPlayer.PlayPosition property.

    For doing a custom implemented UI for the playlist, look into using the MediaPlayer.Queue.