How get music from "MediaLibrary" and play this in a "mediaelement"

kingmiddle

Senior Member
Sep 12, 2009
54
6
0
Broc
How get music from "MediaLibrary" and play this in a "mediaelement"

Hello , my name is Middle.
In first i'm sorry for my bad English langage.
I'm a student develloper on "Windows phone 7" and i Have a problem for play music from a "MediaLibrary".
I need get a " sound.wav " from a medialibrary ,and convert this to a "mediaElement" for play music.
I don't need to use the mediaplayer because i make a DJ application..
Thank you very mutch for your futures responses.

Exemple Code..
foreach( var source in mediaSource.GetAvailableMediaSource())
{
ml =new MediaLibrary(source);
mediaelement test = ml.songs[1]; !!!! Error!!!
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone