Archana
Archana

Reputation: 3221

windows phone 8.1 music library get current media queue

How to get current media queue in windows phone 8.1 (runtime) as in windows phone 8 MediaPlayer.Queue Is it available or we have to implement? Similarly IsShuffled functionality is there ?

Upvotes: 3

Views: 134

Answers (1)

Chirag Shah
Chirag Shah

Reputation: 981

The MediaPlayer API belongs to the Microsoft.Xna.Framework.Media namespace which is no longer available for WinRT components. So you can't use it but you can implement your own logic for it using the MediaElement API which has sufficient properties for a media player except for the logic of queuing etc.

The explanation here and the msdn-code-sample would surely help you out.

For background music player you should use the SystemMediaTransportControls API and attach the events that occur when your app is running in background.

This link has a background audio explanation. Seems helpful.

Upvotes: 1

Related Questions