Nghia Nguyen
Nghia Nguyen

Reputation: 2665

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?

Upvotes: 0

Views: 529

Answers (2)

Vivek Nirkhe
Vivek Nirkhe

Reputation: 369

Have you looked at MediaElement class? In particular, position property can let you position the media to go backward/forward.

Upvotes: 1

Claus Jørgensen
Claus Jørgensen

Reputation: 26355

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.

Upvotes: 1

Related Questions