I am to design a Media Player for Windows Phone 8. I read about using MediaLibrary (for using inbuilt player) and MediaElement ( for designing custom player).
I used MediaSource to get all files located on my phone storage using the following statements.
MediaSource media_local = MediaSource.GetAvailableMediaSources().First((source => source.MediaSourceType == MediaSourceType.LocalDevice));
using (MediaLibrary mediaLibrary = new MediaLibrary(media_local))
{
SongCollection Songs = mediaLibrary.Songs;
MediaPlayer.Play(mediaLibrary.Songs);
List<Song> songslist = Songs.ToList();
foreach (var item in songslist)
{
System.Diagnostics.Debug.WriteLine(item.Name);
}
}
Next I need to design the playlist where i can show all the songs in the list songlist. I dont know what to desgn the playlist feature.
For eg. making a box which can display all the names in the playlist and how to go about displaying the Song name sequentially.