Open a local file

Sep 3, 2010 at 8:13 AM


Is it possible to open a local video file?

With a standard MediaElement, I do something like this :

OpenFileDialog dlg = new OpenFileDialog(); 
if (dlg.ShowDialog() == true) 

But, with smf I have to add Uri to a playlist, so it doesn't work unless the file was in MyDocuments folder.

PlaylistItem pListItem = new PlaylistItem();
pListItem.MediaSource = dlg.File.FullName;


dlg.File.FullName is forbidden and throw a SecurityException.

Is there a solution?