Not like me to do a "gimmetehcodez" style-of-post, but hell, I need help.
I'm trying to create an app that will take a users media, allow them to cut it down, chop and change bits etc, and then save the result as a ringtone.
Funny thing is, while I can do all the rest (in theory, I'll need to port my libraries first), I can't work out how to access the media directory in order to list all of the users media.
Don't really have much code to post, as it's all pretty secretive till I get it working to a marketplaceable point.
I've tried isolated storage, but that only gives access to the app's storage. So question is, can anyone shed any light on how I access the media directory. [I'LL LOVINGLY POST ALLLL OF MY CODE IN A TUTORIAL WHEN THIS IS DONE GUYS
{edit} I have done a lot of google'ing and no banana ¬¬
{edit2} Just a load of stuff about playing media. Nothing about actually listing the files. Going to try an XNA based approach in a moment.
{edit3}
public MainPage()
{
InitializeComponent();
_task = new SaveRingtoneTask();
_library = new MediaLibrary();
_collection = _library.Songs;
foreach (Song s in _collection)
{
ListBoxItem i = new ListBoxItem();
i.Content = s.Name.ToString();
i.Tap += new EventHandler<GestureEventArgs>(i_Tap);
ListBoxOne.Items.Add(i);
}
}
void i_Tap(object sender, GestureEventArgs e)
{
FrameworkDispatcher.Update();
if (MediaPlayer.State == MediaState.Stopped)
MediaPlayer.Play(_collection[ListBoxOne.SelectedIndex]);
else
{
MediaPlayer.Stop();
MediaPlayer.Play(_collection[ListBoxOne.SelectedIndex]);
}
FrameworkDispatcher.Update();
}
Listing and displaying in XNA, BUT I now can't get the source location, and can't work out a way to convert between XNA Song to a file on the fs.
This post has been edited by pryogene: 17 July 2011 - 02:11 PM

New Topic/Question
Reply



MultiQuote





|